/* ==========================================================================
   Careers  (/careers.html)
   --------------------------------------------------------------------------
   Life-at-the-company photo mosaic and the vacancy list. Everything else
   (hero, why-us cards, numbered steps, CTA) is reused from inner-pages.css
   and category-page.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Life at Sun Data
   --------------------------------------------------------------------------
   A five-photo mosaic: one wide lead shot then four square ones. Uses real
   photographs from the event albums rather than stock imagery.
   -------------------------------------------------------------------------- */

.sd-life__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 190px;
    gap: 16px;
}

.sd-life__shot {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: var(--sd-tint);
    line-height: 0;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(16, 38, 73, .08);
    transition: box-shadow .25s ease, transform .25s ease;
}

.sd-life__shot--wide {
    grid-column: span 2;
    grid-row: span 2;
}

.sd-life__shot:hover {
    box-shadow: 0 18px 38px rgba(16, 38, 73, .16);
    transform: translateY(-3px);
}

.sd-life__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.sd-life__shot:hover img {
    transform: scale(1.06);
}

/* Caption sits on a gradient so it stays legible over any photograph. */
.sd-life__cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 16px 13px;
    background: linear-gradient(to top, rgba(10, 20, 36, .82), rgba(10, 20, 36, 0));
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
}

.sd-life__shot--wide .sd-life__cap {
    font-size: 16px;
    padding: 34px 20px 17px;
}

/* --------------------------------------------------------------------------
   Vacancies
   -------------------------------------------------------------------------- */

.sd-jobs__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sd-jobs__count {
    margin: 0 0 22px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sd-muted);
    min-height: 1.2em;
}

.sd-jobs {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sd-job {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 24px 26px;
    border: 1px solid var(--sd-line);
    border-left: 3px solid var(--sd-orange);
    border-radius: 0 14px 14px 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(16, 38, 73, .05);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.sd-job[hidden] {
    display: none;
}

.sd-job:hover {
    border-color: rgba(232, 106, 56, .45);
    border-left-color: var(--sd-orange);
    box-shadow: 0 14px 30px rgba(16, 38, 73, .11);
    transform: translateX(3px);
}

.sd-job__main {
    min-width: 0;
    flex: 1 1 340px;
}

.sd-job__title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.sd-job__title a {
    color: var(--sd-navy);
    text-decoration: none;
}

.sd-job:hover .sd-job__title a {
    color: var(--sd-orange-ink);
}

.sd-job__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-job__facts li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--sd-muted);
}

.sd-job__facts li i {
    font-size: 12.5px;
    color: var(--sd-orange);
}

.sd-job__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 12px 26px;
    border: 1px solid var(--sd-blue);
    border-radius: 50px;
    color: var(--sd-blue);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .25s ease, color .25s ease;
}

.sd-job__cta i {
    font-size: 12px;
    transition: transform .25s ease;
}

.sd-job__cta:hover {
    background: var(--sd-blue);
    color: #fff;
}

.sd-job:hover .sd-job__cta i {
    transform: translateX(4px);
}

.sd-jobs__empty {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 4px 0 0;
    padding: 18px 20px;
    border-left: 3px solid var(--sd-orange);
    border-radius: 0 10px 10px 0;
    background: #fff;
    font-size: 15px;
    line-height: 1.65;
    color: var(--sd-muted);
}

.sd-jobs__empty[hidden] {
    display: none;
}

.sd-jobs__empty i {
    margin-top: 3px;
    color: var(--sd-orange);
}

.sd-jobs__empty a,
.sd-life .sd-heading p a {
    color: var(--sd-blue);
    font-weight: 700;
    text-decoration: none;
}

.sd-jobs__empty a:hover,
.sd-life .sd-heading p a:hover {
    color: var(--sd-orange);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .sd-life__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 170px;
    }

    .sd-life__shot--wide {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 767.98px) {
    .sd-life__grid {
        grid-auto-rows: 150px;
        gap: 10px;
    }

    .sd-job {
        padding: 20px;
        gap: 16px;
    }

    .sd-job__title {
        font-size: 18px;
    }

    .sd-job__cta {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sd-life__shot,
    .sd-life__shot img,
    .sd-job,
    .sd-job__cta,
    .sd-job__cta i {
        transition: none !important;
    }

    .sd-life__shot:hover,
    .sd-job:hover {
        transform: none;
    }

    .sd-life__shot:hover img {
        transform: none;
    }
}

/* ==========================================================================
   Role detail page  (/careers-apply/{slug})
   ========================================================================== */

.sd-role__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.sd-role__facts li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sd-navy);
}

.sd-role__facts li i {
    font-size: 13px;
    color: var(--sd-orange);
}

.sd-role__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 44px;
    align-items: start;
}

.sd-role__side {
    position: sticky;
    top: 24px;
}

/* --------------------------------------------------------------------------
   Apply form
   -------------------------------------------------------------------------- */

.sd-apply {
    padding: 30px 28px;
    border: 1px solid var(--sd-line);
    border-top: 4px solid var(--sd-orange);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(16, 38, 73, .1);
}

.sd-apply__title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: var(--sd-navy);
}

.sd-apply__lead {
    margin: 0 0 22px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--sd-muted);
}

.sd-apply .sd-field select,
.sd-apply .sd-field input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--sd-line);
    border-radius: 8px;
    background: var(--sd-tint);
    font-family: inherit;
    font-size: 15.5px;
    color: var(--sd-navy);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.sd-apply .sd-field select:focus,
.sd-apply .sd-field input:focus {
    outline: none;
    background: #fff;
    border-color: var(--sd-blue);
    box-shadow: 0 0 0 3px rgba(18, 74, 154, .12);
}

/* Country code sits beside the number rather than above it. */
.sd-apply__phone {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 10px;
}

.sd-apply__phone select {
    padding-left: 10px;
    padding-right: 6px;
    font-size: 14px;
}

.sd-apply__captcha {
    margin: 4px 0 20px;
    max-width: 100%;
    overflow-x: auto;
}

.sd-apply__note {
    margin: 16px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--sd-muted);
}

.sd-apply__note span {
    color: var(--sd-orange);
}

/* --------------------------------------------------------------------------
   CV upload
   --------------------------------------------------------------------------
   The real file input sits invisibly over the whole box so the entire area is
   the click target and native drag-and-drop keeps working.
   -------------------------------------------------------------------------- */

.sd-upload {
    position: relative;
    display: block;
    border: 2px dashed #C6D3E6;
    border-radius: 12px;
    background: var(--sd-tint);
    transition: border-color .2s ease, background .2s ease;
}

.sd-upload:hover,
.sd-upload.is-over {
    border-color: var(--sd-orange);
    background: #FFF7F3;
}

.sd-upload.is-filled {
    border-style: solid;
    border-color: #2E9E5B;
    background: #F2FAF5;
}

.sd-upload.is-error {
    border-color: #D0553C;
    background: #FDF3F1;
}

.sd-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.sd-upload input[type="file"]:focus-visible + .sd-upload__face {
    outline: 2px solid var(--sd-orange);
    outline-offset: 2px;
    border-radius: 10px;
}

.sd-upload__face {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    pointer-events: none;
}

.sd-upload__icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(18, 74, 154, .09);
    color: var(--sd-blue);
    font-size: 17px;
}

.sd-upload.is-filled .sd-upload__icon {
    background: rgba(46, 158, 91, .14);
    color: #2E9E5B;
}

.sd-upload__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sd-upload__text strong {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--sd-navy);
    word-break: break-word;
}

.sd-upload__text small {
    font-size: 12.5px;
    color: var(--sd-muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .sd-role__layout {
        grid-template-columns: minmax(0, 1fr) 370px;
        gap: 30px;
    }
}

@media (max-width: 991.98px) {
    .sd-role__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .sd-role__side {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .sd-apply {
        padding: 24px 20px;
    }

    .sd-apply__phone {
        grid-template-columns: 104px minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sd-upload,
    .sd-apply .sd-field input,
    .sd-apply .sd-field select {
        transition: none !important;
    }
}
