/* ── Join Us page ── */

.join-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(30px, 4vw, 60px) clamp(16px, 3vw, 36px);
}

/* ── Filter bar ── */
.join-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.join-search {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: var(--font-sm, 0.95rem);
    font-family: inherit;
    color: #374151;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.join-search:focus {
    border-color: #16d3b7;
    background: #fff;
}

.join-search::placeholder {
    color: #9ca3af;
}

.join-count {
    font-size: var(--font-sm, 0.95rem);
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Post row ── */
.join-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.join-post {
    display: block;
    padding: clamp(18px, 2vw, 28px) 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.join-post:first-child {
    border-top: 1px solid #f0f0f0;
}

.join-post:hover {
    background: #f8fdfb;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 8px;
}

.join-post:hover .join-post-title {
    color: #014240;
}

.join-post:hover .join-post-more {
    color: #014240;
}

.join-post.hidden {
    display: none;
}

/* ── Post content ── */
.join-post-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}

.join-post-title {
    font-size: var(--font-md, clamp(1.0625rem, 0.35vw + 1rem, 1.25rem));
    font-family: 'gilroy-bold', sans-serif;
    color: #0e2517;
    line-height: 1.35;
    margin: 0;
    transition: color 0.2s;
}

.join-post-desc {
    font-size: var(--font-base, 1rem);
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.join-post-more {
    font-size: var(--font-sm, 0.95rem);
    color: #16d3b7;
    text-decoration: none;
    font-family: 'gilroy-bold', sans-serif;
    transition: color 0.2s;
    white-space: nowrap;
}

/* ── Empty state ── */
.join-empty {
    text-align: center;
    padding: 48px 20px;
    color: #9ca3af;
    font-size: var(--font-base, 1rem);
    display: none;
}

.join-empty.visible {
    display: block;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .join-post-header {
        flex-direction: column;
        gap: 4px;
    }
}

/* ── Job posting detail ── */
.job-posting {
    font-size: clamp(15px, 0.35vw + 14px, 16.5px);
    line-height: 1.9;
    color: #3a4550;
    -webkit-font-smoothing: antialiased;
}

/* lead paragraph (intro) */
.job-posting > p:first-of-type {
    font-size: clamp(16px, 0.5vw + 15px, 18px);
    color: #2b3640;
    line-height: 1.85;
    margin-bottom: 1.6em;
    padding-left: 16px;
    border-left: 3px solid #17d1ba;
}

/* section headings with accent bar */
.job-posting h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(17px, 0.6vw + 15px, 20px);
    font-family: 'gilroy-bold', sans-serif;
    font-weight: 700;
    color: #014240;
    margin: 2.1em 0 0.7em;
    padding: 0;
    border: none;
    letter-spacing: 0.02em;
}

.job-posting h2::before {
    content: "";
    flex-shrink: 0;
    width: 5px;
    height: 1.05em;
    border-radius: 3px;
    background: linear-gradient(#014240, #17d1ba);
}

.job-posting h2:first-child {
    margin-top: 0;
}

.job-posting h3 {
    font-size: clamp(15px, 0.4vw + 14px, 17px);
    font-family: 'gilroy-bold', sans-serif;
    font-weight: 600;
    color: #0f766e;
    margin: 1.5em 0 0.5em;
}

.job-posting p {
    margin: 0 0 0.85em;
}

/* custom green bullet markers */
.job-posting ul {
    margin: 0.2em 0 1.2em;
    padding-left: 0;
    list-style: none;
}

.job-posting ul li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.55em;
}

.job-posting ul li::before {
    content: "";
    position: absolute;
    left: 0.1em;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #17d1ba;
}

.job-posting hr {
    border: none;
    border-top: 1px dashed #d7ddd9;
    margin: 2.2em 0;
}

.job-posting strong {
    font-family: 'gilroy-bold', sans-serif;
    color: #014240;
}

.job-posting em {
    font-style: italic;
    color: #45514c;
}

.job-posting a {
    color: #014240;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.job-posting a:hover {
    color: #16d3b7;
}

/* apply email rendered as a button */
.job-posting a[href^="mailto"] {
    display: inline-block;
    background: #014240;
    color: #fff;
    text-decoration: none;
    padding: 5px 16px;
    border-radius: 5px;
    font-family: 'gilroy-bold', sans-serif;
    line-height: 1.5;
    transition: background 0.15s ease, transform 0.15s ease;
}

.job-posting a[href^="mailto"]:hover {
    background: #013937;
    color: #fff;
    transform: translateY(-1px);
}
