.ms-careers-page {
    background: var(--limats-bg, #f8fafc);
}

.ms-careers-hero {
    position: relative;
    padding: 4.5rem 0 2.5rem;
    overflow: hidden;
}

.ms-careers-hero--detail {
    padding: 2.75rem 0 2rem;
    background:
        linear-gradient(165deg, var(--limats-primary-light, #FFF5E9) 0%, rgba(255, 255, 255, 0.92) 42%, var(--limats-bg, #f8fafc) 100%);
}

.ms-careers-hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(239, 163, 73, 0.18), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(214, 125, 19, 0.12), transparent 28%);
    pointer-events: none;
}

.ms-careers-hero__inner {
    max-width: 44rem;
}

.ms-careers-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(239, 163, 73, 0.12);
    color: var(--limats-primary-dark, #D67D13);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ms-careers-hero__title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.1;
    color: var(--limats-text, #1e293b);
}

.ms-careers-hero__lead {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: var(--limats-text-secondary, #64748b);
    line-height: 1.6;
}

.ms-careers-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.92rem;
    color: var(--limats-text-secondary, #64748b);
}

.ms-careers-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.84rem;
    color: var(--limats-text-secondary, #64748b);
}

.ms-careers-breadcrumb a {
    color: var(--limats-text-secondary, #64748b);
    text-decoration: none;
    font-weight: 600;
}

.ms-careers-breadcrumb a:hover {
    color: var(--limats-primary-dark, #D67D13);
}

.ms-careers-hero__panel {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 0;
    border-radius: calc(var(--limats-radius, 16px) + 4px);
    border: 1px solid rgba(239, 163, 73, 0.18);
    background: #fff;
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.06),
        0 4px 12px rgba(239, 163, 73, 0.08);
    overflow: hidden;
}

.ms-careers-hero__panel-main {
    padding: 2rem 2.25rem;
}

.ms-careers-hero__panel-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem 1.75rem;
    background: linear-gradient(180deg, rgba(255, 245, 233, 0.65) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-left: 1px solid rgba(239, 163, 73, 0.14);
}

.ms-careers-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.15rem;
}

.ms-careers-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(239, 163, 73, 0.22);
    background: rgba(255, 255, 255, 0.9);
    color: var(--limats-text, #1e293b);
    font-size: 0.84rem;
    font-weight: 600;
}

.ms-careers-hero__chip i {
    color: var(--limats-primary-dark, #D67D13);
    font-size: 0.78rem;
}

.ms-careers-hero__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0;
}

.ms-careers-hero__fact {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(239, 163, 73, 0.16);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.ms-careers-hero__fact--wide {
    grid-column: 1 / -1;
}

.ms-careers-hero__fact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(239, 163, 73, 0.18), rgba(239, 163, 73, 0.08));
    color: var(--limats-primary-dark, #D67D13);
    font-size: 0.95rem;
}

.ms-careers-hero__fact-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.ms-careers-hero__facts dt {
    margin: 0;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--limats-text-muted, #94a3b8);
    font-weight: 700;
}

.ms-careers-hero__facts dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--limats-text, #1e293b);
}

.ms-careers-hero__fact--wide dd {
    font-size: 1rem;
}

.ms-career-status--hero {
    align-self: flex-start;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    gap: 0.45rem;
}

.ms-career-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
    animation: ms-career-pulse 2s ease-in-out infinite;
}

@keyframes ms-career-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.ms-careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.ms-career-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.35rem;
    height: 100%;
}

.ms-career-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ms-career-card__title {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
    line-height: 1.25;
}

.ms-career-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ms-career-card__tags span,
.ms-career-card__tags--hero span {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(239, 163, 73, 0.1);
    color: var(--limats-primary-dark, #D67D13);
    font-size: 0.76rem;
    font-weight: 600;
}

.ms-career-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.ms-career-status--open {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.ms-career-status--closed {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.ms-career-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0;
    padding: 0.85rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 245, 233, 0.55) 0%, rgba(255, 255, 255, 0.85) 100%);
    border: 1px solid rgba(239, 163, 73, 0.12);
}

.ms-career-card__fact {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0.75rem;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(239, 163, 73, 0.1);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.ms-career-card__fact--wide {
    grid-column: 1 / -1;
}

.ms-career-card__fact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(239, 163, 73, 0.18), rgba(239, 163, 73, 0.07));
    color: var(--limats-primary-dark, #D67D13);
    font-size: 0.82rem;
}

.ms-career-card__fact-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.ms-career-card__meta dt {
    margin: 0;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--limats-text-muted, #94a3b8);
    font-weight: 700;
}

.ms-career-card__meta dd {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--limats-text, #1e293b);
}

.ms-career-card__fact--wide dd {
    font-size: 0.9rem;
}

.ms-career-card__excerpt {
    margin: 0;
    color: var(--limats-text-secondary, #64748b);
    font-size: 0.92rem;
    line-height: 1.55;
    flex: 1;
}

.ms-career-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.ms-careers-empty {
    padding: 3rem 1.5rem;
}

.ms-careers-empty i {
    font-size: 2rem;
    color: var(--limats-primary, #EFA349);
    margin-bottom: 1rem;
}

.ms-career-detail {
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(239, 163, 73, 0.14);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.ms-career-detail__section {
    padding: 1.75rem 2rem;
}

.ms-career-detail__section + .ms-career-detail__section {
    border-top: 1px solid rgba(239, 163, 73, 0.12);
}

.ms-career-detail__section--requirements {
    background: linear-gradient(180deg, rgba(255, 245, 233, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
}

.ms-career-detail__head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ms-career-detail__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(239, 163, 73, 0.2), rgba(239, 163, 73, 0.08));
    color: var(--limats-primary-dark, #D67D13);
    font-size: 1.05rem;
}

.ms-career-detail__icon--requirements {
    background: linear-gradient(145deg, rgba(22, 163, 74, 0.16), rgba(22, 163, 74, 0.06));
    color: #15803d;
}

.ms-career-detail__title {
    margin: 0 0 0.2rem;
    font-family: var(--limats-font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--limats-text, #1e293b);
}

.ms-career-detail__subtitle {
    margin: 0;
    font-size: 0.88rem;
    color: var(--limats-text-muted, #94a3b8);
}

.ms-career-detail__prose {
    padding-left: 3.75rem;
    color: var(--limats-text-secondary, #64748b);
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-line;
}

.ms-career-detail__list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 3.75rem;
    display: grid;
    gap: 0.75rem;
}

.ms-career-detail__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(239, 163, 73, 0.12);
    color: var(--limats-text, #1e293b);
    font-size: 0.94rem;
    line-height: 1.55;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.ms-career-detail__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.45rem;
    height: 1.45rem;
    margin-top: 0.1rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    font-size: 0.62rem;
}

.ms-career-apply {
    padding: 1.5rem;
    position: sticky;
    top: 6rem;
}

.ms-career-apply__form .btn.is-loading {
    pointer-events: none;
    opacity: 0.9;
}

.ms-career-apply__success {
    text-align: center;
    padding: 0.5rem 0.25rem;
}

.ms-career-apply__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    font-size: 1.45rem;
}

.ms-career-apply__success-title {
    margin: 0 0 0.65rem;
    font-family: var(--limats-font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--limats-text, #1e293b);
}

.ms-career-apply__success-text {
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--limats-text-secondary, #64748b);
}

.ms-career-apply__ref {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 245, 233, 0.75) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px dashed rgba(239, 163, 73, 0.35);
}

.ms-career-apply__ref-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--limats-text-muted, #94a3b8);
}

.ms-career-apply__ref-value {
    font-family: var(--limats-font-title);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--limats-primary-dark, #D67D13);
}

.ms-career-apply__success-note {
    margin: 0 0 1.25rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--limats-text-muted, #94a3b8);
}

.ms-career-apply__closed {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

.ms-career-apply__closed i {
    margin-top: 0.15rem;
}

/* Resume upload */
.ms-career-upload {
    position: relative;
}

.ms-career-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.ms-career-upload__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 148px;
    padding: 1.1rem 1.25rem;
    border: 2px dashed rgba(214, 125, 19, 0.32);
    border-radius: 14px;
    background:
        radial-gradient(ellipse 80% 70% at 50% 0%, rgba(239, 163, 73, 0.12) 0%, transparent 70%),
        linear-gradient(180deg, #fff 0%, rgba(255, 245, 233, 0.65) 100%);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ms-career-upload__dropzone:hover,
.ms-career-upload__dropzone:focus {
    outline: none;
    border-color: rgba(214, 125, 19, 0.55);
    box-shadow: 0 0 0 4px rgba(239, 163, 73, 0.12);
}

.ms-career-upload__dropzone.is-dragover {
    border-color: var(--limats-primary, #EFA349);
    background: rgba(239, 163, 73, 0.14);
    transform: translateY(-1px);
}

.ms-career-upload__icon {
    width: 2.65rem;
    height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--limats-primary-light, #FFF5E9);
    color: var(--limats-primary-dark, #D67D13);
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

.ms-career-upload__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--limats-text, #1e293b);
}

.ms-career-upload__hint {
    margin: 0;
    font-size: 0.86rem;
    color: var(--limats-text-secondary, #64748b);
}

.ms-career-upload__browse {
    color: var(--limats-primary-dark, #D67D13);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ms-career-upload__meta {
    margin: 0.25rem 0 0;
    font-size: 0.76rem;
    color: var(--limats-text-muted, #94a3b8);
}

.ms-career-upload__file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(239, 163, 73, 0.22);
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.ms-career-upload__file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    background: rgba(239, 163, 73, 0.14);
    color: var(--limats-primary-dark, #D67D13);
}

.ms-career-upload__file-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.ms-career-upload__file-copy strong {
    font-size: 0.9rem;
    color: var(--limats-text, #1e293b);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-career-upload__file-copy span {
    font-size: 0.78rem;
    color: var(--limats-text-muted, #94a3b8);
}

.ms-career-upload__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--limats-text-secondary, #64748b);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.ms-career-upload__remove:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.ms-career-upload.is-invalid .ms-career-upload__dropzone {
    border-color: rgba(220, 38, 38, 0.45);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

@media (max-width: 991.98px) {
    .ms-careers-hero__panel {
        grid-template-columns: 1fr;
    }

    .ms-careers-hero__panel-aside {
        border-left: 0;
        border-top: 1px solid rgba(239, 163, 73, 0.14);
    }

    .ms-career-apply {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .ms-careers-hero--detail {
        padding-top: 2rem;
    }

    .ms-careers-hero__panel-main,
    .ms-careers-hero__panel-aside {
        padding: 1.35rem 1.25rem;
    }

    .ms-careers-hero__title {
        font-size: 1.75rem;
    }

    .ms-career-detail__section {
        padding: 1.35rem 1.25rem;
    }

    .ms-career-detail__prose,
    .ms-career-detail__list {
        padding-left: 0;
    }
}
