.job-detail-page {
    background: var(--jm-paper);
    display: flex;
    flex-direction: column;
    min-height: var(--app-viewport-height);
}

.job-detail-page .site-header {
    background: var(--jm-paper);
    border-bottom: 1px solid var(--jm-line);
    backdrop-filter: none;
}

.job-detail-page .site-footer {
    margin-top: 0;
    border-top: 1px solid var(--jm-line);
    background: var(--jm-paper);
}

.job-detail-page .site-footer__inner p {
    color: var(--jm-muted);
}

.job-detail-page-main {
    flex: 1 0 auto;
    padding: 18px 0 42px;
}

.job-detail-layout {
    display: grid;
    gap: 26px;
}

.job-detail-document,
.job-detail-aside {
    min-width: 0;
}

.expired-notice {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--jm-line);
    border-radius: var(--jm-radius);
    background: var(--jm-soft);
    color: var(--jm-muted);
}

.expired-notice strong {
    color: var(--jm-ink);
}

.job-detail-heading {
    padding-bottom: 24px;
    border-bottom: 3px solid var(--jm-ink);
}

.job-detail-employer,
.job-detail-place,
.similar-job span,
.similar-job small,
.job-detail-page .site-footer p {
    margin: 0;
    color: var(--jm-muted);
}

.job-detail-employer {
    color: var(--jm-ink);
    font-weight: 800;
}

.job-detail-main__title {
    max-width: 20ch;
    margin: 6px 0 0;
    color: var(--jm-ink);
    font-size: 2.15rem;
    line-height: 1.08;
}

.job-detail-place {
    margin-top: 8px;
    font-size: 1.02rem;
}

.job-detail-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.job-detail-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: var(--jm-radius);
    background: var(--jm-orange);
    color: #ffffff;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-align: center;
}

.job-detail-actions .button:hover {
    background: var(--jm-orange-hover);
    color: #ffffff;
}

.job-detail-actions .button--secondary {
    border-color: var(--jm-line);
    background: var(--jm-paper);
    color: var(--jm-ink);
}

.job-detail-actions .button--secondary:hover {
    background: var(--jm-soft);
    color: var(--jm-ink);
}

.job-detail-actions .button--disabled {
    border-color: var(--jm-line);
    background: var(--jm-soft);
    color: var(--jm-muted);
    cursor: not-allowed;
    pointer-events: none;
}

.job-detail-actions button.button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.job-detail-actions button.button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.job-detail-actions--direct {
    align-items: start;
}

.direct-contact {
    min-width: 0;
}

.direct-contact > .button:focus-visible,
.direct-contact__action:focus-visible,
.direct-contact__address:focus-visible {
    outline: 3px solid rgba(49, 95, 154, 0.35);
    outline-offset: 3px;
}

.direct-contact__icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.direct-contact--open {
    width: min(100%, 34rem);
}

.direct-contact__panel {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--jm-orange-soft-line);
    border-top: 4px solid var(--jm-orange);
    border-radius: var(--jm-radius);
    background: var(--jm-orange-soft);
    box-shadow: var(--jm-shadow-sm);
}

.direct-contact__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.direct-contact__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 50%;
    background: var(--jm-paper);
    color: var(--jm-orange-link);
    box-shadow: inset 0 0 0 1px var(--jm-orange-soft-line);
}

.direct-contact__mark .direct-contact__icon {
    width: 21px;
    height: 21px;
}

.direct-contact__eyebrow {
    margin: 0 0 2px;
    color: var(--jm-orange-link);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.direct-contact__heading h2 {
    margin: 0;
    color: var(--jm-ink);
    font-size: 1.05rem;
    line-height: 1.3;
}

.direct-contact__address {
    min-width: 0;
    color: var(--jm-ink);
    font-size: 0.95rem;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-decoration-color: var(--jm-orange-soft-line);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.direct-contact__address:hover {
    color: var(--jm-orange-link);
    text-decoration-color: currentColor;
}

.job-detail-actions .direct-contact__action {
    width: fit-content;
    margin: 0;
}

.direct-contact__hint {
    margin: -2px 0 0;
    color: var(--jm-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.job-contact__details[hidden],
.job-contact__status[hidden] {
    display: none;
}

.job-contact__status {
    margin: 12px 0 0;
    color: var(--jm-muted);
}

.button__icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.job-detail-section {
    padding: 26px 0;
    border-bottom: 1px solid var(--jm-line);
}

.job-detail-section > h2 {
    margin-bottom: 14px;
    color: var(--jm-ink);
    font-size: 1.2rem;
    line-height: 1.2;
}

.job-detail-facts {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--jm-line);
}

.job-detail-facts div {
    display: grid;
    grid-template-columns: minmax(92px, 0.38fr) minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--jm-line);
}

.job-detail-facts dt {
    color: var(--jm-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.job-detail-facts dd {
    margin: 0;
    color: var(--jm-ink);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.prose {
    max-width: 68ch;
    color: #293241;
}

.prose__body {
    min-width: 0;
    overflow-wrap: anywhere;
}

.prose p,
.prose__body,
.prose__body p,
.prose__body ul,
.prose__body ol,
.prose__body table {
    margin: 0 0 17px;
}

.prose__body h3 {
    margin: 24px 0 8px;
    color: var(--jm-ink);
    font-size: 1.02rem;
    line-height: 1.25;
}

.prose__body ul,
.prose__body ol {
    padding-left: 21px;
}

.prose__body li {
    margin-bottom: 8px;
}

.prose__body table {
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    border: 1px solid var(--jm-line);
    border-radius: var(--jm-radius);
    background: var(--jm-paper);
    color: var(--jm-ink);
    font-size: 0.95rem;
}

.prose__body th,
.prose__body td {
    min-width: 7.5rem;
    padding: 10px 12px;
    border-bottom: 1px solid var(--jm-line);
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.prose__body th {
    background: var(--jm-soft);
    color: var(--jm-ink);
    font-weight: 800;
}

.prose__body tr:last-child th,
.prose__body tr:last-child td {
    border-bottom: 0;
}

.similar-jobs {
    padding: 18px;
    border: 1px solid var(--jm-line);
    border-top: 4px solid var(--jm-orange);
    border-radius: var(--jm-radius);
    background: var(--jm-paper);
    box-shadow: var(--jm-shadow-lg);
}

.similar-jobs--recovery {
    border-top-color: var(--jm-muted);
}

.similar-jobs__header {
    margin-bottom: 12px;
}

.similar-jobs h2 {
    margin: 0;
    color: var(--jm-ink);
    font-size: 1.2rem;
    line-height: 1.2;
}

.similar-jobs__list {
    display: grid;
    gap: 10px;
}

.similar-job {
    display: grid;
    gap: 6px;
    padding: 13px;
    border: 1px solid var(--jm-line);
    border-radius: var(--jm-radius);
    background: var(--jm-soft);
}

.similar-job:hover {
    border-color: var(--jm-orange-soft-line);
    background: var(--jm-orange-soft);
}

.similar-job:hover strong {
    text-decoration: underline;
}

.similar-job__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.similar-job strong {
    color: var(--jm-ink);
    overflow-wrap: anywhere;
}

.similar-job small {
    font-weight: 400;
}

@media (min-width: 640px) {
    .job-detail-actions {
        grid-template-columns: auto auto;
        justify-content: start;
    }

    .direct-contact--open {
        grid-column: 1 / -1;
    }

    .job-detail-facts {
        grid-template-columns: 1fr 1fr;
        column-gap: 30px;
    }
}

@media (max-width: 639px) {
    .direct-contact,
    .direct-contact > .button,
    .direct-contact--open,
    .job-detail-actions .direct-contact__action {
        width: 100%;
    }

    .direct-contact__panel {
        padding: 16px;
    }
}

@media (min-width: 920px) {
    .job-detail-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
        gap: 48px;
    }

    .job-detail-document {
        max-width: 710px;
    }

    .job-detail-page-main {
        padding-top: 30px;
    }

    .job-detail-main__title {
        max-width: 24ch;
        font-size: 2.8rem;
    }
}
