/* Layout */
.job-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* Item */
.job-item {
    width: 100%;
}

/* Summary row */
.job-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.65rem 1.5rem;
    cursor: pointer;
    list-style: none;
    text-align: left;
}

.job-summary::-webkit-details-marker {
    display: none;
}

/* Title */
.job-title {
    flex: 1;
    text-align: left;
    font-family: var(--font-headline);
}

/* Icon button */
.job-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

.job-icon svg {
    transform: rotate(90deg);
    transition: transform 0.35s ease;
}

.job-item.is-open .job-icon svg {
    transform: rotate(270deg);
}

/* Animated body */
.job-body {
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.job-item.is-open .job-body {
    max-height: 2000px;
}

.job-content {
    text-align: left;
}

.job-location-name {
    font-family: var(--font-headline);
}

.job-sidebar {
    border: unset;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    padding-top: 2rem;
    
    @media (min-width: 768px) {
        border: unset;
        border-left: 1px solid rgba(0, 0, 0, 0.12);
        padding-top: unset;
        padding-left: 2rem;
    }
}

/* Gutenberg content formatting */
.job-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.job-content p:last-child {
    margin-bottom: 0;
}

.job-content h2,
.job-content h3,
.job-content h4 {
    font-family: var(--font-headline);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.job-content h2 { font-size: 1.25rem; }
.job-content h3 { font-size: 1.1rem; }
.job-content h4 { font-size: 1rem; }

.job-content ul,
.job-content ol {
    margin-bottom: 1rem;
    margin-top:-0.5rem;
    padding-left: 1.5rem;
}

.job-content ul li {
    list-style: disc;
    margin-bottom: 0.25rem;
}

.job-content ol li {
    list-style: decimal;
    margin-bottom: 0.25rem;
}

.job-content strong {
    font-weight: 700;
}

.job-content em {
    font-style: italic;
}

.job-content a {
    text-decoration: underline;
}

.job-content a:hover {
    opacity: 0.75;
}
