.jobs-container,
.job-detail-container {
    margin-block: 1.5rem;
}

.jobs-filter-section,
.job-detail-header,
.job-detail-body,
.job-detail-footer,
.job-facets,
.job-skills {
    margin-bottom: 1.25rem;
}

.jobs-filter-section h2,
.job-detail-header h1,
.job-section h2,
.job-facets h3,
.job-skills h3,
.job-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.jobs-filter-form,
.job-sections,
.job-sidebar {
    display: grid;
    gap: 1rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.875rem;
    align-items: end;
}

.filter-field {
    display: grid;
    gap: 0.375rem;
}

.jobs-filter-input {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    background: transparent;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jobs-container .button,
.job-detail-container .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 0.25rem;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
}

.jobs-loading {
    padding: 0.75rem 0;
}

.jobs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

.job-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.25rem;
    overflow: hidden;
}

.job-card-header,
.job-card-body,
.job-card-footer,
.job-detail-header,
.job-detail-footer,
.job-facets,
.job-skills {
    padding: 1rem;
}

.job-card-body {
    display: grid;
    gap: 0.625rem;
}

.job-location {
    margin: 0;
}

.job-summary {
    margin: 0;
}

.jobs-no-results {
    padding: 1rem;
    border: 1px dashed rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
}

.job-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem;
}

.job-meta-item {
    display: grid;
    gap: 0.25rem;
}

.job-detail-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem);
    gap: 1.25rem;
}

.job-section {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.job-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.job-section-content {
    line-height: 1.6;
}

.facet-group {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.facet-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.facet-group ul,
.job-skills ul {
    margin: 0;
    padding-left: 1rem;
}

.job-skills li {
    margin-bottom: 0.75rem;
}

.skill-rating {
    height: 0.375rem;
    margin-top: 0.25rem;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: currentColor;
}

.jobs-container .notice,
.job-detail-container .notice {
    margin: 0 0 1rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 0.25rem;
}

.jobs-container .notice p,
.job-detail-container .notice p {
    margin: 0;
}

@media (max-width: 782px) {
    .filter-row,
    .jobs-list,
    .job-detail-body,
    .job-meta {
        grid-template-columns: 1fr;
    }
}
