/* Join us page. Colors come from root.css and theme.css. */

.jn {
    --jn-ink: var(--headerColor, #2b3a32);
    --jn-body: var(--bodyTextColor, #3d4d44);
    --jn-line: var(--lineColor, #c2d6cc);
    --jn-green: var(--secondaryDark, #4a7c65);
    --jn-mute: #5a6d62;
    --jn-shadow: 0 2px 16px rgba(43, 58, 50, 0.08);
    padding: clamp(7rem, 12vw, 9rem) 0 4rem;
    color: var(--jn-body);
}
.jn-wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; box-sizing: border-box; }

/* Header, centered like the rest of the site */
.jn-head { text-align: center; }
.jn-h1 { margin: 0 0 0.8rem; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.15; color: var(--jn-ink); }
.jn-sub { margin: 0 auto; max-width: 40rem; font-size: 1.05rem; line-height: 1.6; }

/* Photos of the lab, from Socials. The first one is the largest. */
.jn-welcome { margin-top: 2.2rem; }
.jn-photos { display: grid; gap: 0.8rem; grid-auto-rows: clamp(8rem, 15vw, 12rem); }
.jn-n5 { grid-template-columns: 1.5fr 1fr 1fr; }
.jn-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jn-n3 { grid-template-columns: 1.5fr 1fr; }
.jn-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(11rem, 24vw, 18rem); }
.jn-n1 { grid-template-columns: minmax(0, 40rem); justify-content: center; grid-auto-rows: clamp(12rem, 28vw, 22rem); }
.jn-n3 .jn-photo:first-child, .jn-n5 .jn-photo:first-child { grid-row: span 2; }
.jn-photo { position: relative; margin: 0; overflow: hidden; background: #e7f1ec; border-radius: 16px; }
.jn-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.jn-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 0.9rem 0.6rem; font-size: 0.82rem; font-weight: 700; line-height: 1.3; color: #fff; background: linear-gradient(to top, rgba(20, 30, 25, 0.62), rgba(20, 30, 25, 0)); }
.jn-welcome-line { margin: 1rem auto 0; max-width: 40rem; text-align: center; font-size: 1.02rem; line-height: 1.55; }
.jn-welcome-line a { margin-left: 0.3rem; font-weight: 700; color: var(--jn-green); text-decoration: none; white-space: nowrap; }
.jn-welcome-line a:hover { text-decoration: underline; }

.jn-h2 { margin: 3rem 0 0.3rem; text-align: center; font-size: 1.9rem; color: var(--jn-ink); }
.jn-hint { margin: 0 0 1.3rem; text-align: center; font-size: 0.95rem; color: var(--jn-mute); }

/* Paths */
.jn-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.jn-card { padding: 1.2rem 1.4rem; background: #fff; border-top: 4px solid #e0a82e; border-radius: 14px; box-shadow: var(--jn-shadow); }
.jn-name { margin: 0 0 0.4rem; font-size: 1.3rem; color: var(--jn-ink); }
.jn-text { margin: 0 0 0.8rem; max-width: none; font-size: 0.97rem; line-height: 1.5; }
.jn-chips { margin-bottom: 0.4rem; }
.jn-chips i { display: inline-block; margin: 0 0.4rem 0.4rem 0; padding: 0.2rem 0.7rem; font-size: 0.8rem; font-style: normal; font-weight: 700; color: #2f6b4d; background: #e0f1e8; border-radius: 999px; }
.jn-link { font-size: 0.95rem; font-weight: 700; color: var(--jn-green); text-decoration: none; }
.jn-link:hover { text-decoration: underline; }

/* Opportunities */
.jn-jobs { display: grid; gap: 1.1rem; margin-top: 1.2rem; }
.jn-job { overflow: hidden; background: #fff; border: 1px solid #b9d0c3; border-radius: 14px; box-shadow: 0 4px 20px rgba(43, 58, 50, 0.14); }
.jn-job-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.4rem; background: var(--jn-ink); }
.jn-job-top .jn-name { margin: 0; font-size: 1.25rem; color: #fff; }
.jn-open { flex: none; padding: 0.15rem 0.7rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jn-ink); background: #e0a82e; border-radius: 999px; }
.jn-job-body { padding: 1rem 1.4rem 1.2rem; }
.jn-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.9rem; max-width: none; font-size: 0.88rem; }
.jn-meta span { padding: 0.25rem 0.8rem; font-weight: 700; color: var(--jn-ink); background: #e7f1ec; border-radius: 999px; }
.jn-meta .jn-by { color: #6b4a00; background: #faebc4; }
.jn-details summary { display: inline-block; padding: 0.45rem 1.1rem; font-size: 0.93rem; font-weight: 700; color: var(--jn-green); cursor: pointer; border: 1.5px solid var(--jn-green); border-radius: 999px; }
.jn-details summary:hover { color: #fff; background: var(--jn-green); }
.jn-details[open] summary { margin-bottom: 0.4rem; }
.jn-body { padding-top: 0.6rem; font-size: 0.95rem; line-height: 1.55; }
.jn-body p { max-width: 46rem; }
.jn-body a { color: var(--jn-green); font-weight: 700; }
.jn-none { margin-top: 1.2rem; padding: 1.6rem 1rem; text-align: center; background: #fff; border: 1.5px dashed #9fbfae; border-radius: 16px; }
.jn-none p { margin: 0 0 1rem; max-width: none; font-size: 1.05rem; }
.jn-btn { display: inline-block; padding: 0.7rem 1.5rem; font-size: 0.95rem; font-weight: 700; color: #fff; text-decoration: none; background: var(--jn-ink); border-radius: 999px; }
.jn-btn:hover { background: var(--jn-green); }

.jn-past { margin-top: 1.4rem; padding: 0.9rem 1.4rem 0.4rem; background: #fff; border: 1px solid #d3e2d9; border-radius: 14px; }
.jn-past-title { margin: 0 0 0.2rem; max-width: none; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jn-mute); }
.jn-item { padding: 0.8rem 0; border-top: 1px solid #e3ede7; }
.jn-item:first-of-type { border-top: 0; }
.jn-item summary { display: flex; justify-content: space-between; gap: 1rem; list-style: none; cursor: pointer; font-weight: 700; color: var(--jn-green); }
.jn-item summary::-webkit-details-marker { display: none; }
.jn-title { color: var(--jn-ink); }
.jn-status { flex: none; font-size: 0.8rem; color: var(--jn-mute); }

/* Steps */
.jn-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 0; padding: 0; list-style: none; text-align: center; }
.jn-num { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; font-size: 1.1rem; font-weight: 700; color: #fff; background: var(--jn-ink); border-radius: 50%; }
.jn-steps p { margin: 0.6rem auto 0; max-width: 18rem; font-size: 0.97rem; line-height: 1.5; }

@media only screen and (max-width: 48rem) {
    .jn-paths { grid-template-columns: 1fr; }
    .jn-steps { grid-template-columns: 1fr; }
}
@media only screen and (max-width: 40rem) {
    .jn-n3, .jn-n4, .jn-n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 8.5rem; }
    .jn-n3 .jn-photo:first-child, .jn-n5 .jn-photo:first-child { grid-column: span 2; grid-row: span 2; }
    .jn-n2 { grid-template-columns: minmax(0, 1fr); }
}
