html {
    scroll-snap-type: none;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(1100px 1100px at 13% 20%, rgba(208, 115, 63, 0.36), transparent 80%),
        linear-gradient(120deg, var(--surface) 0%, var(--bg) 150%);
    background-attachment: fixed;
}

.jobs-page {
    max-width: 60rem;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
}

.home-link {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: var(--text);
    background: var(--surface-glass);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(8px);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.home-link:hover {
    border-color: var(--heading);
    transform: translateX(-3px);
}

.home-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.jobs-hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.jobs-hero p {
    color: var(--text);
    margin-bottom: 0.9rem;
    max-width: 46rem;
}

.jobs-section {
    margin-top: 3.5rem;
}

.jobs-section > h2 {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

.jobs-section > .section-note {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.job {
    background: var(--surface-glass);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 0.9rem;
    backdrop-filter: blur(6px);
    transition: border-color 0.15s ease;
}

.job:hover,
.job[open] {
    border-color: var(--line-strong);
}

.job summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 3.25rem 1.1rem 1.35rem;
    position: relative;
}

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

.job summary::after {
    content: "";
    position: absolute;
    right: 1.4rem;
    top: 1.5rem;
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid var(--heading);
    border-bottom: 2px solid var(--heading);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.job[open] summary::after {
    transform: rotate(-135deg);
    top: 1.75rem;
}

.job summary:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
    border-radius: var(--radius-lg);
}

.job h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.job-meta span {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking);
    color: var(--text-muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
}

.job-summary-text {
    color: var(--text);
    font-size: 0.98rem;
}

.job-body {
    padding: 0 1.35rem 1.35rem;
    border-top: 1px solid var(--line);
}

.job-body h2,
.job-body h4 {
    font-size: 1.02rem;
    margin: 1.25rem 0 0.5rem;
}

.job-body p {
    margin-bottom: 0.7rem;
}

.job-body ul {
    padding-left: 1.2rem;
}

.job-body li {
    line-height: 1.6;
    margin-bottom: 0.45rem;
}

.job-body li::marker {
    color: var(--accent);
}

.job-body strong {
    color: var(--heading);
    font-weight: 600;
}

.job-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 1rem;
    margin-top: 1.1rem;
    font-size: 0.95rem;
}

.job-details dt {
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--text-muted);
}

.job-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    margin-top: 1rem;
}

.job .btn,
.job-actions .btn {
    margin: 0;
    font-size: 0.95rem;
}

.job-link {
    font-family: var(--font-ui);
    font-size: 0.95rem;
}

/* Single-role page */
.role-page .jobs-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.role-page .job {
    padding-top: 0.25rem;
}

.role-page .job:hover {
    border-color: var(--line);
}

.role-page .job-body {
    border-top: 0;
}

.role-intro {
    margin-top: 2rem;
    color: var(--text-muted);
}

.role-intro p {
    margin-bottom: 0.7rem;
}

.role-intro h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.all-roles {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking);
    text-decoration: none;
    color: var(--text-muted);
}

.all-roles:hover {
    color: var(--heading);
}

.apply {
    margin-top: 3.5rem;
    padding: 1.75rem 1.5rem;
    background: var(--surface-glass);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(6px);
}

.apply h2 {
    font-size: 1.6rem;
    margin-bottom: 0.9rem;
}

.apply ol {
    padding-left: 1.3rem;
}

.apply li {
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.apply li::marker {
    color: var(--heading);
    font-weight: 700;
}

.apply code {
    font-family: var(--font-ui);
    color: var(--heading);
}

.apply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.apply-actions .btn {
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .jobs-page {
        padding-top: 5rem;
    }

    .home-link {
        top: 1rem;
        left: 1rem;
    }

    .job-details {
        grid-template-columns: 1fr;
    }

    .job-details dd {
        margin-bottom: 0.4rem;
    }
}
