/* Job listings — used on index.html and beta.html */

/* ── Section ── */
.open-jobs {
    margin: 60px 0 50px;
    overflow: visible;
    padding-bottom: 20px;
    display: block;
}
.open-jobs-header {
    text-align: center;
    margin-bottom: 40px;
}
.open-jobs-header h2 {
    background: linear-gradient(81.5deg, #E03741 0%, #E06037 91.05%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #E04637;
    font-size: 36px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}
.open-jobs-header p {
    color: #717171;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

/* ── Grid ── */
.ms-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ── Card ── */
.ms-job-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.ms-job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.09);
}
.ms-job-card-body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 42px;
}

/* ── Icon circle ── */
.ms-job-icon-circle {
    width: 50px;
    height: 50px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ms-job-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* ── Info block (location + title + tags) ── */
.ms-job-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ms-job-location-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7c7c7c;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: -13px; /* tighten gap to title, matches Figma 3px */
}
.ms-job-pin {
    flex-shrink: 0;
}
.ms-job-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #313131;
    line-height: 1.2;
    margin: 0;
}

/* ── Tags ── */
.ms-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ms-job-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f6f6f6;
    padding: 8px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #535353;
    line-height: 1;
}
.ms-job-tag svg {
    flex-shrink: 0;
}

/* ── Footer (salary + apply button) ── */
.ms-job-footer {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 16px 0 0;
    display: flex;
    gap: 16px;
    align-items: center;
}
.ms-job-salary-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ms-job-salary {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #313131;
    line-height: 1;
    white-space: nowrap;
}
.ms-job-salary-label {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #7c7c7c;
    line-height: 1;
}
.ms-job-apply {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 2px solid #e0433f;
    border-radius: 6px;
    background: #fff;
    color: #e05437;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.ms-job-apply:hover {
    background: #e0433f;
    color: #fff;
}

/* ── Skeleton shimmer ── */
@keyframes ms-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}
.ms-skeleton-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.07);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 42px;
    min-height: 100%;
}
.ms-skel {
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: ms-shimmer 1.4s infinite linear;
}
.ms-skel-icon { width: 50px; height: 50px; border-radius: 9999px; }
.ms-skel-body { display: flex; flex-direction: column; gap: 16px; }
.ms-skel-meta { height: 14px; width: 45%; }
.ms-skel-title { height: 26px; width: 80%; }
.ms-skel-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-skel-tag { height: 32px; width: 60%; }
.ms-skel-tag.short { width: 35%; }
.ms-skel-footer {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 16px 0 0;
    display: flex;
    gap: 16px;
    align-items: center;
}
.ms-skel-salary-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 12px; }
.ms-skel-salary { height: 16px; width: 55%; }
.ms-skel-salary-label { height: 14px; width: 75%; }
.ms-skel-btn { flex: 1 1 0; height: 44px; border-radius: 6px; }

/* ── Empty ── */
.ms-jobs-empty {
    text-align: center;
    color: #717171;
    font-style: italic;
    font-family: 'Roboto', sans-serif;
    padding: 20px 0;
}

@media (max-width: 600px) {
    .ms-jobs-grid { grid-template-columns: 1fr; }
    .open-jobs-header h2 { font-size: 28px; }
    .alb-promo {
        flex-wrap: wrap;
        gap: 8px;
    }
    .alb-promo__logo {
        height: 15px;
    }
}

/* ── ALB cross-promotion callout ── */
.alb-promo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 0 0;
    border-top: 1px solid #e8e8e8;
    margin-top: 24px;
    text-align: center;
}
.alb-promo__logo {
    height: 18px;
    opacity: 0.75;
    flex-shrink: 0;
}
.alb-promo__text {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}
.alb-promo__link {
    color: #E03741;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}
.alb-promo__link:hover {
    text-decoration: underline;
    color: #E03741;
}
