/* =============================================================================
   CAREERS - styling for careers.php only.

   Kept out of styles.css so the rest of the site never downloads it. It builds
   on styles.css rather than replacing it: the same red, the same Inter and
   Outfit, the same header, footer and page banner, so the jobs page reads as
   part of the website and not as something bolted on.

   One deliberate exception. The upload box - the one place an applicant is
   most likely to get stuck - is drawn as a dark viewing panel, the kind of
   light box an X-ray is read against. It brightens when a file is dragged
   over it, and once a file is chosen it shows how much of the size limit that
   file uses. Everything around it stays quiet on purpose.
   ============================================================================= */

.careers-page {
    --c-line: #E7E9EE;
    --c-mist: #F4F6F8;
    --c-steel: var(--text-light);
    --c-body: #374151;
    --c-film: #0E1826;
    --c-green: #047857;
    --c-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
    --c-ease: cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* Anything given a display value below must still vanish when hidden. */
.careers-page [hidden] {
    display: none !important;
}

/* =============================================================================
   Banners
   ============================================================================= */

/* A job's banner reads left to right, like a job advert, rather than centred
   like the other pages' banners. */
.job-hero {
    text-align: left;
    padding-bottom: 66px;
}

.job-hero .breadcrumb {
    justify-content: flex-start;
    margin: 0 0 26px;
}

.job-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    max-width: 20ch;
}

/* styles.css centres every paragraph in a page banner (.page-hero p, with
   margin: 0 auto). This banner reads left to right, so its paragraphs sit on
   the left edge. Two classes deep, so these win over that rule. */
.job-hero p {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.job-hero .job-hero-team {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.job-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding: 0;
    color: var(--c-steel);
    font-size: 0.93rem;
}

.job-facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.job-facts i {
    color: var(--primary-color);
    font-size: 0.88em;
}

.job-facts-light {
    gap: 10px;
}

.job-facts-light li {
    color: var(--white);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 7px 15px;
    border-radius: 999px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.job-facts-light i {
    color: rgba(255, 255, 255, 0.8);
}

.job-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 32px;
}

.job-hero-actions .btn i {
    margin-left: 8px;
    font-size: 0.85em;
}

.job-hero-deadline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
}

.job-hero .job-hero-closed {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 11px 18px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    font-size: 0.98rem;
}

/* Shown on a preview, so nobody mistakes it for the live page. */
.preview-ribbon {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 999;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.9rem;
    color: #92400E;
    background: #FEF3C7;
    border-bottom: 1px solid #FDE68A;
}

/* =============================================================================
   The list of jobs
   ============================================================================= */
.openings .section-title {
    margin-bottom: 2.6rem;
}

.job-list {
    display: grid;
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

.job-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px 40px;
    padding: 30px 34px;
    background: var(--white);
    border: 1px solid var(--c-line);
    border-radius: 22px;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(31, 41, 55, 0.04);
    transition: transform 0.3s var(--c-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* A red edge that grows in on hover - the same mark the form uses for the
   question being answered. */
.job-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.35s var(--c-ease);
}

.job-row:hover,
.job-row:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(211, 47, 47, 0.28);
    box-shadow: 0 22px 46px rgba(31, 41, 55, 0.09);
}

.job-row:hover::before,
.job-row:focus-visible::before {
    transform: scaleY(1);
}

.job-row:focus-visible {
    outline: 3px solid rgba(211, 47, 47, 0.35);
    outline-offset: 3px;
}

.job-row-team {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.job-row-title {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.job-row-summary {
    color: var(--c-steel);
    margin-bottom: 16px;
    max-width: 64ch;
}

.job-row-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    text-align: right;
}

.job-row-deadline {
    display: flex;
    flex-direction: column;
    font-size: 0.86rem;
    color: var(--c-steel);
}

.job-row-deadline em {
    font-style: normal;
    font-weight: 600;
    color: var(--text-dark);
}

.job-row-go {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(211, 47, 47, 0.25);
    transition: background-color 0.3s ease;
}

.job-row-go i {
    transition: transform 0.3s var(--c-ease);
}

.job-row:hover .job-row-go {
    background: var(--primary-hover);
}

.job-row:hover .job-row-go i {
    transform: translateX(4px);
}

/* Nothing open, a job that has gone, a page that could not load. */
.careers-empty {
    max-width: 560px;
    margin: 0 auto;
    padding: 56px 36px;
    text-align: center;
    background: var(--white);
    border: 1px dashed #DDE0E6;
    border-radius: 24px;
}

.careers-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 1.7rem;
}

.careers-empty h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.careers-empty p {
    color: var(--c-steel);
}

.careers-empty p + p {
    margin-top: 8px;
}

.careers-empty a:not(.btn) {
    color: var(--primary-color);
    font-weight: 600;
}

.careers-empty .btn {
    margin-top: 22px;
}

/* ---------- What happens after you apply: a real sequence, so numbered ---------- */
.hire-steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

.hire-steps li {
    counter-increment: step;
    position: relative;
    padding: 28px 24px 26px;
    background: var(--white);
    border: 1px solid var(--c-line);
    border-radius: 20px;
}

.hire-steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}

/* The thread from one step to the next. */
.hire-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 48px;
    right: -23px;
    width: 24px;
    height: 2px;
    background: #F1C4C4;
}

.hire-steps h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.hire-steps p {
    color: var(--c-steel);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* =============================================================================
   One job
   ============================================================================= */
.job-section {
    padding-top: 72px;
}

.job-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: start;
}

.job-body {
    max-width: 720px;
}

.job-block + .job-block {
    margin-top: 42px;
}

.job-block h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.45rem;
    margin-bottom: 16px;
}

.job-block h2::before {
    content: "";
    flex-shrink: 0;
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: var(--primary-color);
}

.job-block p {
    color: var(--c-body);
    font-size: 1.04rem;
    line-height: 1.85;
}

.job-block p + p {
    margin-top: 14px;
}

.job-points {
    list-style: none;
    display: grid;
    gap: 13px;
    padding: 0;
}

.job-points li {
    position: relative;
    padding-left: 36px;
    color: var(--c-body);
    font-size: 1.02rem;
    line-height: 1.7;
}

.job-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.22em;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D32F2F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- At a glance ---------- */
.job-aside {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.glance {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--c-line);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(31, 41, 55, 0.07);
}

.glance-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-steel);
    margin-bottom: 10px;
}

.glance-list > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #F0F1F4;
}

.glance-list dt {
    flex-shrink: 0;
    color: var(--c-steel);
    font-size: 0.9rem;
}

.glance-list dd {
    font-weight: 600;
    font-size: 0.94rem;
    text-align: right;
    overflow-wrap: anywhere;
}

.days-left {
    display: block;
    margin-top: 3px;
    font-size: 0.78rem;
    color: var(--c-green);
}

.days-left.is-soon {
    color: #B45309;
}

.glance-apply {
    display: block;
    width: 100%;
    margin-top: 22px;
    text-align: center;
}

.glance-share {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px dashed var(--c-line);
}

.glance-share p {
    font-size: 0.88rem;
    color: var(--c-steel);
    margin-bottom: 12px;
}

.share-row {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--c-line);
    background: var(--white);
    color: var(--text-dark);
    font-size: 1.05rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.share-wa:hover {
    background: #25D366;
    border-color: #25D366;
    color: var(--white);
}

.share-fb:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: var(--white);
}

.share-copy:hover,
.share-copy.is-copied {
    background: var(--text-dark);
    border-color: var(--text-dark);
    color: var(--white);
}

.share-copy.is-copied {
    background: var(--c-green);
    border-color: var(--c-green);
}

/* =============================================================================
   The application form
   ============================================================================= */
.apply-band {
    padding: 92px 0 112px;
    background: var(--c-mist);
    border-top: 1px solid var(--c-line);
    scroll-margin-top: var(--header-height);
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 780px;
    margin: 0 auto;
}

.apply-head {
    text-align: center;
    margin-bottom: 14px;
}

.apply-head h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.4rem);
    margin-bottom: 10px;
}

.apply-head p {
    color: var(--c-steel);
}

.apply-form .form-status {
    margin-bottom: 0;
}

.req {
    color: var(--primary-color);
    font-weight: 700;
}

.q-optional {
    margin-left: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c-steel);
}

/* ---------- One card per question, as in Google Forms ---------- */
.q-card {
    position: relative;
    padding: 26px 28px 24px;
    background: var(--white);
    border: 1px solid var(--c-line);
    border-radius: 20px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* The question being answered gets a red edge. */
.q-card::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 20px;
    bottom: 20px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--primary-color);
    opacity: 0;
    transform: scaleY(0.4);
    transition: opacity 0.25s ease, transform 0.35s var(--c-ease);
}

.q-card:focus-within {
    border-color: #F1CBCB;
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.07);
}

.q-card:focus-within::before,
.q-card.has-error::before {
    opacity: 1;
    transform: scaleY(1);
}

.q-card.has-error {
    border-color: #FCA5A5;
}

.q-card.has-error::before {
    background: #DC2626;
}

.q-card-title {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.q-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.q-field-wide {
    grid-column: 1 / -1;
}

.q-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.q-label {
    display: block;
    padding: 0;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-dark);
}

.q-hint {
    margin: -2px 0 14px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--c-steel);
}

.q-field .q-hint {
    margin: 8px 0 0;
}

.q-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E2E4E9;
    border-radius: 12px;
    background: #FAFAFB;
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    /* 16px exactly: smaller and iPhones zoom the whole page into the box. */
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.q-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

textarea.q-input {
    min-height: 140px;
    resize: vertical;
    line-height: 1.7;
}

.q-select {
    position: relative;
}

.q-select::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -7px;
    border-right: 2px solid var(--c-steel);
    border-bottom: 2px solid var(--c-steel);
    transform: rotate(45deg);
    pointer-events: none;
}

select.q-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 48px;
    cursor: pointer;
}

.q-date {
    max-width: 280px;
}

.has-error .q-input {
    border-color: #F87171;
    background: #FFFBFB;
}

.q-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    color: #B91C1C;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}

.q-error i {
    margin-top: 3px;
}

/* A section heading inside the form. */
.q-section {
    padding: 22px 4px 4px;
}

.q-section h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.q-section p {
    color: var(--c-steel);
}

/* ---------- Choices: whole-row targets, easy to hit with a thumb ---------- */
.opts {
    display: grid;
    /* minmax(0, 1fr), not the default: the column must never grow wider than
       the card, whatever is inside an option. */
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.opt:hover {
    border-color: #D1D5DB;
    background: #FCFCFD;
}

/* The real radio or checkbox: invisible, but still there to be focused,
   ticked and read out by a screen reader. */
.opt > input[type="radio"],
.opt > input[type="checkbox"],
.scale-step > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.opt-box {
    flex-shrink: 0;
    display: inline-flex;
    width: 22px;
    height: 22px;
    border: 2px solid #C9CDD4;
    border-radius: 50%;
    background: var(--white);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.opt > input[type="checkbox"] + .opt-box {
    border-radius: 7px;
}

/* The chosen row's outline. Drawn from the box rather than the row so no
   :has() is needed - this has to work on older phones too. */
.opt-box::after {
    content: "";
    position: absolute;
    inset: -1px;
    border: 2px solid transparent;
    border-radius: 14px;
    pointer-events: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.opt > input:checked + .opt-box {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.opt > input[type="radio"]:checked + .opt-box {
    box-shadow: inset 0 0 0 4px var(--white);
}

.opt > input[type="checkbox"]:checked + .opt-box {
    background: var(--primary-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.opt > input:checked + .opt-box::after {
    border-color: var(--primary-color);
    background: rgba(211, 47, 47, 0.035);
}

.opt > input:checked ~ .opt-text {
    font-weight: 600;
}

.opt > input:focus-visible + .opt-box {
    outline: 3px solid rgba(211, 47, 47, 0.35);
    outline-offset: 3px;
}

.opt-text {
    line-height: 1.45;
}

.opt-other-input {
    position: relative;
    z-index: 1;
    flex: 1;
    /* width: 0 lets flex size it. A text box left to its own default width
       claims about twenty characters, and on a phone that pushed every option
       past the edge of the screen. */
    width: 0;
    min-width: 0;
    padding: 6px 2px;
    border: 0;
    border-bottom: 1.5px solid #E2E4E9;
    background: transparent;
    font: inherit;
    font-size: 16px;
    color: var(--text-dark);
}

.opt-other-input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

/* ---------- Linear scale ---------- */
.scale {
    display: grid;
    grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr));
    gap: 8px;
    max-width: 580px;
}

.scale-step {
    position: relative;
    cursor: pointer;
}

.scale-step span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border: 1px solid #E2E4E9;
    border-radius: 12px;
    background: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.scale-step:hover span {
    border-color: #C9CDD4;
}

.scale-step input:checked + span {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(211, 47, 47, 0.25);
}

.scale-step input:focus-visible + span {
    outline: 3px solid rgba(211, 47, 47, 0.35);
    outline-offset: 2px;
}

.scale-ends {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    max-width: 580px;
    margin-top: 10px;
    font-size: 0.86rem;
    color: var(--c-steel);
}

/* =============================================================================
   THE LIGHT BOX - the upload panel
   ============================================================================= */
.lightbox {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 176px;
    padding: 30px 24px;
    border-radius: 18px;
    text-align: center;
    color: #DCE6F2;
    background: radial-gradient(120% 140% at 50% 0%, #1B2B44 0%, var(--c-film) 58%, #0A111C 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 30px rgba(14, 24, 38, 0.18);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

/* The viewing panel: a soft field of light behind the film. */
.lightbox::before {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: -1;
    border-radius: 12px;
    border: 1px dashed rgba(220, 232, 245, 0.24);
    background: radial-gradient(60% 75% at 50% 50%, rgba(226, 236, 248, 0.1), rgba(226, 236, 248, 0) 72%);
    pointer-events: none;
    transition: background 0.35s ease, border-color 0.35s ease;
}

/* A file is being dragged over it: the light comes on. */
.lightbox.is-over::before {
    border-color: rgba(236, 243, 252, 0.7);
    background: radial-gradient(75% 95% at 50% 50%, rgba(236, 243, 252, 0.34), rgba(226, 236, 248, 0.06) 78%);
}

.lightbox.is-over {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 4px rgba(211, 47, 47, 0.2), 0 18px 44px rgba(14, 24, 38, 0.32);
}

.lightbox:focus-within {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 4px rgba(211, 47, 47, 0.28);
}

/* With JavaScript, the real file box is stretched invisibly over the whole
   panel - so a click anywhere opens the file picker, and a file dropped
   anywhere lands in it, using the browser's own handling. */
.js .lightbox-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.js .lightbox.has-file .lightbox-input {
    pointer-events: none;
}

.lightbox-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.lightbox-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: rgba(226, 236, 248, 0.09);
    border: 1px solid rgba(226, 236, 248, 0.18);
    color: var(--white);
    font-size: 1.3rem;
    transition: transform 0.35s var(--c-ease), background-color 0.35s ease;
}

.lightbox.is-over .lightbox-icon {
    transform: translateY(-4px);
    background: rgba(236, 243, 252, 0.2);
}

.lightbox-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--white);
}

.lightbox-sub {
    font-size: 0.92rem;
    color: rgba(220, 230, 242, 0.75);
}

.lightbox-pick {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-underline-offset: 3px;
}

.lightbox-readout {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    margin-top: 12px;
    font-family: var(--c-mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(205, 219, 236, 0.72);
}

.lightbox-readout span + span::before {
    content: "/";
    margin-right: 12px;
    opacity: 0.45;
}

.lb-touch {
    display: none;
}

/* Phones cannot drag files about, so tell them to tap. */
@media (hover: none) and (pointer: coarse) {
    .lb-pointer {
        display: none;
    }

    .lb-touch {
        display: inline;
    }
}

/* Without JavaScript: an ordinary file box, with the limits beside it. */
html:not(.js) .lightbox {
    flex-direction: column;
    gap: 14px;
}

html:not(.js) .lightbox-title,
html:not(.js) .lightbox-sub {
    display: none;
}

html:not(.js) .lightbox-input {
    max-width: 100%;
    color: #DCE6F2;
}

/* ---------- The chosen file, laid on the light box ---------- */
.lightbox-file {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    text-align: left;
    animation: lb-in 0.35s var(--c-ease);
}

@keyframes lb-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

/* A little document with a folded corner, coloured by kind. */
.lb-tag {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 46px;
    height: 58px;
    padding-bottom: 9px;
    border-radius: 6px 12px 6px 6px;
    background: #DC2626;
    color: var(--white);
    font-family: var(--c-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.lb-tag::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 0 13px 13px 0;
    border-color: transparent var(--c-film) rgba(255, 255, 255, 0.4) transparent;
}

.lb-tag.doc {
    background: #2563EB;
}

.lb-tag.img {
    background: #0D9488;
}

.lb-meta {
    flex: 1;
    min-width: 0;
}

.lb-name {
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-size {
    margin-top: 3px;
    font-family: var(--c-mono);
    font-size: 0.8rem;
    color: rgba(205, 219, 236, 0.82);
}

/* How much of the limit the file uses. Green, amber near the limit, red past it. */
.lb-gauge {
    height: 5px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(226, 236, 248, 0.14);
    overflow: hidden;
}

.lb-gauge span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #34D399, #10B981);
    transition: width 0.7s var(--c-ease);
}

.lightbox.is-heavy .lb-gauge span {
    background: linear-gradient(90deg, #FCD34D, #F59E0B);
}

.lightbox.is-too-big .lb-gauge span {
    background: linear-gradient(90deg, #F87171, #EF4444);
}

.lightbox.is-too-big .lb-size {
    color: #FCA5A5;
}

.lb-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.lb-btn {
    padding: 7px 15px;
    border: 1px solid rgba(226, 236, 248, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lb-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(226, 236, 248, 0.5);
}

.lb-btn:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* ---------- Sending ---------- */
.apply-submit {
    margin-top: 8px;
    padding: 30px 28px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--c-line);
    border-radius: 20px;
}

.apply-ready {
    margin-bottom: 16px;
    font-size: 0.93rem;
    color: var(--c-steel);
}

.apply-ready.is-ready {
    color: var(--c-green);
    font-weight: 600;
}

.apply-ready button {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.apply-send {
    position: relative;
    max-width: 440px;
    padding: 18px 28px;
    font-size: 1.05rem;
    overflow: hidden;
}

/* The upload's progress, along the bottom edge of the button. */
.apply-meter {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.apply-meter span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--white);
    transition: width 0.2s linear;
}

.apply-send.is-sending .apply-meter {
    opacity: 1;
}

.apply-send.is-sending:hover {
    transform: none;
}

.apply-privacy {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    max-width: 460px;
    margin: 18px auto 0;
    font-size: 0.86rem;
    color: var(--c-steel);
}

.job-closed {
    padding-top: 10px;
}

/* =============================================================================
   Thank you
   ============================================================================= */
.applied {
    max-width: 640px;
    margin: 0 auto;
    padding: 50px 42px 44px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--c-line);
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(31, 41, 55, 0.08);
}

.applied-mark svg {
    width: 78px;
    height: 78px;
}

.applied-mark circle {
    fill: #ECFDF5;
    stroke: #A7F3D0;
    stroke-width: 2;
}

.applied-mark path {
    fill: none;
    stroke: var(--c-green);
    stroke-width: 3.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: applied-tick 0.6s 0.25s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes applied-tick {
    to {
        stroke-dashoffset: 0;
    }
}

.applied h2 {
    font-size: 2rem;
    margin: 18px 0 8px;
}

.applied-for {
    color: var(--c-steel);
    font-size: 1.05rem;
}

.applied-for strong {
    color: var(--text-dark);
}

.applied-ref {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: 360px;
    margin: 28px auto;
    padding: 22px;
    border-radius: 18px;
    background: var(--c-mist);
    border: 1px dashed #D5D9E0;
}

.applied-ref-label {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-steel);
}

.applied-ref-code {
    font-family: var(--c-mono);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-dark);
}

.applied-ref-note {
    font-size: 0.86rem;
    color: var(--c-steel);
}

.applied-message {
    margin-bottom: 26px;
    padding: 16px 20px;
    border-radius: 14px;
    background: #FFF7F7;
    color: var(--c-body);
    text-align: left;
}

.applied-next {
    list-style: none;
    counter-reset: next;
    display: grid;
    gap: 14px;
    max-width: 470px;
    margin: 0 auto 24px;
    padding: 0;
    text-align: left;
}

.applied-next li {
    counter-increment: next;
    position: relative;
    padding-left: 44px;
    color: #4B5563;
    line-height: 1.6;
}

.applied-next li::before {
    content: counter(next);
    position: absolute;
    left: 0;
    top: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.applied-next strong {
    color: var(--text-dark);
}

.applied-email {
    margin-bottom: 28px;
    font-size: 0.88rem;
    color: var(--c-steel);
}

.applied-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* =============================================================================
   Smaller screens
   ============================================================================= */
@media (max-width: 992px) {
    .job-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* The facts first on a phone - they are what people scan for. */
    .job-aside {
        position: static;
        order: -1;
    }

    .hire-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hire-steps li::after {
        display: none;
    }
}

@media (max-width: 680px) {
    .job-row {
        grid-template-columns: 1fr;
        padding: 24px 22px;
        border-radius: 20px;
    }

    .job-row-title {
        font-size: 1.32rem;
    }

    .job-row-side {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        text-align: left;
    }

    .job-hero-actions .btn {
        width: 100%;
    }

    .hire-steps {
        grid-template-columns: 1fr;
    }

    .apply-band {
        padding: 60px 0 84px;
    }

    .q-card {
        padding: 22px 18px 20px;
        border-radius: 18px;
    }

    .q-grid {
        grid-template-columns: 1fr;
    }

    .scale {
        gap: 5px;
    }

    .scale-step span {
        height: 44px;
        font-size: 0.95rem;
    }

    .lightbox {
        padding: 26px 18px;
    }

    .lightbox-file {
        flex-wrap: wrap;
        gap: 14px;
    }

    .lb-actions {
        flex-direction: row;
        width: 100%;
    }

    .lb-btn {
        flex: 1;
    }

    .apply-submit {
        padding: 24px 18px;
    }

    .applied {
        padding: 38px 22px 34px;
    }

    .applied h2 {
        font-size: 1.65rem;
    }

    .applied-ref-code {
        font-size: 1.6rem;
    }

    .careers-empty {
        padding: 44px 22px;
    }
}

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

    .job-row,
    .job-row::before,
    .job-row-go i,
    .q-card,
    .q-card::before,
    .lightbox,
    .lightbox::before,
    .lightbox-icon,
    .lb-gauge span,
    .apply-meter span {
        transition: none;
    }

    .lightbox-file {
        animation: none;
    }

    .applied-mark path {
        animation: none;
        stroke-dashoffset: 0;
    }
}
