/* new_site.css */
/* body {
    background-image: url("/img/background_embedded.svg");
    background-size: 100% 100%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    max-width: 100vw;
    overflow-x: hidden;
    max-height: 100vh;
    overflow-y: scroll;
} */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

:root {
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol";

    --border-radius: 13px;
    --small-gap: 6px;
    --regular-gap: 20px;
    --large-gap: 60px;
    --regular-padding: 12px;
    --small-font: 14px;
    --medium-font: 18px;

    /*
    #2A6478
    #308446
    */
    /* light-mode colors */
    --float-shadow: 0 15px 20px rgba(0, 0, 0, 0.85);
    --grey-color: #323b3a;
    --money-color: #007A33;
    --dark-blue-grey: rgb(14, 16, 24);
    --dark-cream: rgb(245, 238, 225);
    --warning-red: rgb(255,15,15);
    /* --background-color: rgb(241, 232, 216);
    --text-color: rgb(75, 54, 33); */
    --background-color: rgb(250, 247, 240);
    --text-color: rgb(20, 20, 21);
    --link-color: rgb(0, 0, 238);
    --link-hover-color: rgb(85, 26, 139);

}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: rgb(20, 20, 21);
        --text-color:  rgb(250, 247, 240);
        --link-color: rgb(97, 169, 255);
        --link-hover-color: rgb(145, 197, 255);
        /* --background-color: #1e1e1e;
        --text-color: #f0f0f0; */
    }
}

body {
    font-family: var(--font-sans);
    background-color: var(--background-color);
    color: var(--text-color);
    border-color: var(--text-color);
    
    outline-color: var(--text-color);
}

button, div, input, select {
    border-radius: var(--border-radius);
}

a:link {
    color: var(--link-color);
}

a:visited {
    color: var(--link-hover-color);
}

a:hover {
    color: var(--link-hover-color);
}

a:active {
    color: var(--link-hover-color);
}

/*
    Sitewide styles
*/
.header {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: auto;
    align-items: center;
    justify-content: center;
    margin-bottom: 77px;
}

.header-links {
    display: flex;
    gap: var(--regular-gap);
    flex-wrap: wrap;
}

@media (max-width: 760px) and (max-resolution: 1dppx),
    (max-width: 1140px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 1520px) and (min-resolution: 1.76dppx) {

    .header {
        width: 100%;
    }
}

@media (max-width: 460px) and (max-resolution: 1dppx),
    (max-width: 790px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 920px) and (min-resolution: 1.76dppx) {

    .header {
        margin-bottom: var(--small-gap);
    }
}

.main-page {
    min-height: 60vh;
}

.footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    align-items: center;
    margin-top: 77px;
    /* height: 160px; */
}

.hyperlink {
    text-decoration: underline;
}
    .hyperlink:hover {
        cursor: pointer;
    }

.simple-hyperlink {
}
    .simple-hyperlink:hover {
        cursor: pointer;
    }

.simple-hyperlink.opaque {
    opacity: 30%;
}

.standard-input {
    padding: 6px;
    font-size: var(--medium-font);
    font-family: var(--font-sans);
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid;
    outline: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;

    box-sizing: border-box;
    width: 100%;
}

    .standard-input:focus {
        opacity: 0.85;
    }

.standard-checkbox {
    appearance: none;
    width: 35px;
    height: 35px;
    margin: 0;
    border: 1px solid;
    background-color: var(--background-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .standard-checkbox:checked::after {
        content: "";
        width: 16px;
        height: 16px;
        background-color: var(--text-color);
        border-radius: 7px;
    }

    .standard-checkbox:focus {
        opacity: 0.85;
    }

.standard-select {
    /* appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
     */
    padding: 6px;
    font-size: var(--medium-font);
    font-family: var(--font-sans);
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid;
    outline: none;
}
    .standard-select:focus {
        opacity: 0.85;
    }

.big-input {
    min-width: 200px;
    min-height: 120px;
    font-size: 1.3rem;
}

.primary-cta,
.secondary-cta,
.warning-cta {
    padding: 12px;
    font-family: var(--font-sans);
    border: 2px solid;
    /* border-radius: 13px; */
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.primary-cta {
    background-color: var(--text-color);
    color: var(--background-color);
}

    .primary-cta:hover,
    .primary-cta:active {
        background-color: var(--background-color);
        color: var(--text-color);
    }

.secondary-cta {
    background-color: var(--background-color);
    color: var(--text-color);
}

    .secondary-cta:hover,
    .secondary-cta:active {
        background-color: var(--text-color);
        color: var(--background-color);
    }

.warning-cta {
    background-color: var(--warning-red);
    color: var(--text-color);
}

    .warning-cta:hover,
    .warning-cta:active {
        background-color: var(--text-color);
        color: var(--background-color);
    }

.short-cta {
    padding-top: 0;
    padding-bottom: 0;
}

.centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

.centered-full-height {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.small-gap {
    gap: var(--small-gap);
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.inline-element {
    display: inline;
}

.capped-length-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.small-bottom-margin {
    margin-bottom: var(--small-gap);
}

.medium-bottom-margin {
    margin-bottom: var(--regular-gap);
}

.large-bottom-margin {
    margin-bottom: var(--large-gap);
}

.hidden-text-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
}


/*
    Colors
*/
.money {
    color: var(--money-color);
}

.validation-message {
    color: var(--warning-red);
    display: inline;
}

.half-width-centered {
    width: 50dvw;
    margin: auto;
}

@media (max-width: 900px) and (max-resolution: 1dppx),
    (max-width: 1350px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 1800px) and (min-resolution: 1.76dppx) {

    .half-width-centered {
        width: 95dvw;
    }
}


/* ================================================================================================================== */
/* Typeahead input component (job posting search) */
/* ================================================================================================================== */
.typeahead-container {
    position: relative;
}

.typeahead-input {
}

.typeahead-list {
    position: absolute;
    top: 100%;
    left: 0;
    box-sizing: border-box;
    background-color: var(--background-color);
    border: 1px solid;
    border-radius: var(--border-radius);
    padding: 8px;
    margin: 0;
    list-style: none;
    font-size: var(--medium-font);
    z-index: 4;
}

.typeahead-list-item:hover {
    cursor: pointer;
    /* background-color: black;
    color: white; */
    background-color: var(--text-color);
    color: var(--background-color)
}


/* ================================================================================================================== */
/* Job posting previews */
/* ================================================================================================================== */
.job-posting-preview {
    margin: 0 auto 8px;
    padding: 16px;
    max-width: 50dvw;
    border: 1px solid;
}
    .job-posting-preview:hover {
        cursor: pointer;
        outline: 2px solid;
    }

.job-posting-preview-header {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.job-posting-preview-header span[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: bolder;
    display: inline-block;
    min-width: 160px;
}

.job-posting-preview-body span[data-label]::before {
    content: attr(data-label) ": ";
    font-size: 1.1rem;
    font-weight: bolder;
    display: inline-block;
    min-width: 180px;
}

.job-posting-preview-body span {
    display: inline-block;
    min-width: 220px;
}

.job-posting-preview-body {
    display: flex;
}

.job-posting-preview-body > div {
    flex: 1;
}

@media (max-width: 1600px) and (max-resolution: 1dppx),
    (max-width: 2400px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 3200px) and (min-resolution: 1.76dppx) {

    .job-posting-preview {
        max-width: 70dvw;
    }
}

@media (max-width: 1100px) and (max-resolution: 1dppx),
    (max-width: 1600px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 2200px) and (min-resolution: 1.76dppx) {

    .job-posting-preview {
        max-width: 95dvw;
    }
}

@media (max-width: 800px) {
    .job-posting-preview-header span {
        display: flex;
        flex-direction: column;
    }

    .job-posting-preview-body span {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
}


/* ================================================================================================================== */
/* Admin company previews */
/* ================================================================================================================== */
.admin-company-preview {
    display: flex;
    border: 1px solid;
    /* border-radius: 8px; */
    padding: 26px;
    margin: 0 auto 8px;
    max-width: 70dvw;
}
    .admin-company-preview:hover {
        cursor: pointer;
        outline: 2px solid;
    }

.admin-company-preview .flex-column {
    min-width: 0;
}

.admin-company-preview span[data-label] {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.admin-company-preview span[data-label]::before {
    content: attr(data-label) ": ";
    font-size: 1.1rem;
    font-weight: bolder;
    /* color: black; */
    display: inline-block;
    min-width: 180px;
}

/*
.admin-company-preview > div:first-child {
    width: 50%;
}

.admin-company-preview > div:last-child {
    margin-left: auto;
    align-self: center;
}
*/

.admin-company-preview .flex-column {
    flex: 1;
    min-width: 0;
}

.admin-company-preview > div:last-child {
    flex: 0;
}

@media (max-width: 1600px) and (max-resolution: 1dppx),
    (max-width: 2400px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 3200px) and (min-resolution: 1.76dppx) {

    .admin-company-preview {
        max-width: 80dvw;
    }
}

@media (max-width: 1100px) and (max-resolution: 1dppx),
    (max-width: 1600px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 2200px) and (min-resolution: 1.76dppx) {

    .admin-company-preview {
        max-width: 90dvw;
    }
}

@media (max-width: 900px) {
    .admin-company-preview {
        flex-direction: column;
    }

    .admin-company-preview .flex-column span {
        display: flex;
        flex-direction: column;
        text-align: center;
        margin-bottom: var(--small-gap);
    }

    .admin-company-preview > div:last-child {
        margin-left: revert;
        align-self: revert;

        display: flex;
        align-items: center;
        justify-content: center;
    }
}


/* ================================================================================================================== */
/* Company user previews */
/* ================================================================================================================== */
.company-user-preview {
    display: flex;
    border: 1px solid;
    /* border-radius: 8px; */
    padding: 26px;
    margin: 0 auto 8px;
    max-width: 65dvw;
}
    .company-user-preview:hover {
        cursor: pointer;
        outline: 2px solid;
    }

.company-user-preview span[data-label]::before {
    content: attr(data-label) ": ";
    font-size: 1.1rem;
    font-weight: bolder;
    /* color: black; */
    display: inline-block;
    min-width: 180px;
}

/*
.company-user-preview > div:first-child {
    width: 50%;
}

.company-user-preview > div:last-child {
    margin-left: auto;
    align-self: center;
}
*/
.company-user-preview .flex-column {
    flex: 1;
    min-width: 0;
}

.company-user-preview > div:last-child {
    flex: 0;
}

@media (max-width: 1600px) and (max-resolution: 1dppx),
    (max-width: 2400px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 3200px) and (min-resolution: 1.76dppx) {

    .company-user-preview {
        max-width: 75dvw;
    }
}

@media (max-width: 1100px) and (max-resolution: 1dppx),
    (max-width: 1600px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 2200px) and (min-resolution: 1.76dppx) {

    .company-user-preview {
        max-width: 90dvw;
    }
}

@media (max-width: 900px) {
    .company-user-preview {
        flex-direction: column;
    }
    
    .company-user-preview .flex-column span {
        display: flex;
        flex-direction: column;
        text-align: center;
        margin-bottom: var(--small-gap);
    }

    .company-user-preview > div:last-child {
        margin-left: revert;
        align-self: revert;

        display: flex;
        align-items: center;
        justify-content: center;
    }
}


/* ================================================================================================================== */
/* Applicant decision previews */
/* ================================================================================================================== */
.applicant-decision-preview {
    display: flex;
    border: 1px solid;
    /* border-radius: 8px; */
    padding: 4px;
    margin: 0 auto 8px;
    max-width: 65dvw;
}
    .applicant-decision-preview:hover {
        cursor: pointer;
        outline: 2px solid;
    }

.applicant-decision-preview .flex-column {
    min-width: 0;
}

.applicant-decision-preview span[data-label] {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.applicant-decision-preview span[data-label]::before {
    content: attr(data-label) ": ";
    font-size: 1.1rem;
    font-weight: bolder;
    display: inline-block;
    min-width: 180px;
}

/*
.applicant-decision-preview > div:first-child {
    width: 50%;
}

.applicant-decision-preview > div:last-child {
    margin-left: auto;
    align-self: center;
}
*/
.applicant-decision-preview .flex-column {
    flex: 1;
    min-width: 0;
}

.applicant-decision-preview > div:last-child {
    flex: 0;
    display: flex;
    align-items: center;
}

@media (max-width: 1600px) and (max-resolution: 1dppx),
    (max-width: 2400px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 3200px) and (min-resolution: 1.76dppx) {

    .applicant-decision-preview {
        max-width: 73dvw;
    }
}

@media (max-width: 1100px) and (max-resolution: 1dppx),
    (max-width: 1600px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 2200px) and (min-resolution: 1.76dppx) {

    .applicant-decision-preview {
        max-width: 88dvw;
    }
}

@media (max-width: 900px) {
    .applicant-decision-preview {
        flex-direction: column;
    }
    
    .applicant-decision-preview .flex-column span {
        display: flex;
        flex-direction: column;
        text-align: center;
        margin-bottom: var(--small-gap);
    }

    .applicant-decision-preview > div:last-child {
        margin-left: revert;
        align-self: revert;

        display: flex;
        align-items: center;
        justify-content: center;
    }
}


/* ================================================================================================================== */
/* Special */
/* ================================================================================================================== */
.hero-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 35vh;
    gap: 5px;
}

.hero-text > div:first-child {
    margin-bottom: 20px;
}


/*
    Job filter
*/

.job-filters-grid {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: var(--regular-gap);
    /* margin-top: 36px; */
}

.job-filters-grid > div {
    display: flex;
    flex-direction: column;
    min-width: 8dvw;
}

/* .job-filters-grid label {
    display: inline;
} */

.job-filters-grid input,
.job-filters-grid select {
    /* flex: 1;
    min-width: 0; */
}


.job-filter-actions-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    margin-bottom: 36px;
}

/* @media (max-width: 1200px) and (max-resolution: 1.99dppx),
    (max-width: 2400px) and (min-resolution: 2dppx) {

    .job-filters-grid {
        display: grid;
        grid-template-columns: auto auto auto;
    }
} */

@media (max-width: 1410px) and (max-resolution: 1dppx),
    (max-width: 2115px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 2820px) and (min-resolution: 1.76dppx) {

    .job-filters-grid {
        display: grid;
        grid-template-columns: auto auto auto;
    }
}

@media (max-width: 800px) and (max-resolution: 1dppx),
    (max-width: 1200px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 1600px) and (min-resolution: 1.76dppx) {

    .job-filters-grid {
        display: grid;
        grid-template-columns: auto auto;
    }
}

@media (max-width: 570px) and (max-resolution: 1dppx),
    (max-width: 855px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 1140px) and (min-resolution: 1.76dppx) {

    .job-filters-grid {
        display: grid;
        grid-template-columns: auto;
        gap: 0;
    }

    .job-filter-actions-grid {
        flex-direction: column;
    }
}


/* ================================================================================================================== */
/* View Job Posting */
/* ================================================================================================================== */
.even-split-container {
    display: flex;
}

.left,
.right {
    flex: 1;
    padding: var(--regular-padding);
}

.job-posting-company-logo {
    max-width: 160px;
    height: auto;
}

.job-posting-details span[data-label]::before {
    content: attr(data-label) ": ";
    font-size: 1.1rem;
    font-weight: bolder;
    /* color: black; */
    display: inline-block;
    min-width: 180px;
    margin-bottom: 4px;
}

@media (max-width: 800px) and (max-resolution: 1dppx),
    (max-width: 1200px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 1600px) and (min-resolution: 1.76dppx) {

    .even-split-container {
        display: flex;
        flex-direction: column;
    }

    .left,
    .right {
        flex: revert;
        /* padding: var(--regular-padding); */
    }

    .job-posting-details span {
        display: flex;
        flex-direction: column;
        margin-bottom: var(--small-gap);
    }

}

/* ================================================================================================================== */
/* Applicant resume image upload component */
/* ================================================================================================================== */
.tooltip-trigger {
    /* color: var(--terminal-magenta-color); */
    color: var(--link-color);
    cursor: pointer;
    position: relative;
    display: inline-block;
}
    .tooltip-trigger:hover {
        color: var(--link-hover-color);
    }

.hidden-tooltip {
    display: none;
    position: absolute;
    /* top: 1.5em; */
    left: 0;
    border: 1px solid;
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 0.5rem;
    z-index: 3;
}

.tooltip-trigger:hover .hidden-tooltip {
    display: block;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-upload-box {
    width: 250px;
    height: 500px;
    border: 1px dashed;
    /* color: var(--terminal-green-color); */
    border-radius: var(--border-radius);

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
    .image-upload-box:hover {
        cursor: pointer;
        border-style: solid;
    }

.image-preview-box {
    width: auto;
    height: 500px;
    z-index: 2;
}

.image-preview {
    width: 363px;
    height: 470px;
    border-radius: var(--border-radius);
    transform-origin: top left;
    transition: transform 0.1s;
}
    .image-preview:hover {
        transform: scale(2);
        border: 1px solid var(--terminal-green-color);
    }

.hidden-file-input {
    display: none;
}

@media (max-width: 800px) and (max-resolution: 1dppx),
    (max-width: 1200px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 1600px) and (min-resolution: 1.76dppx) {

    .image-preview-box {
        height: 230px;
    }
    .image-preview {
        width: auto;
        height: 200px;
    }
    .image-upload-box {
        width: 160px;
        height: 200px;
    }
}


/* ================================================================================================================== */
/* Paginator */
/* ================================================================================================================== */
.paginator-wrapper {
    display: flex;
    justify-content: center;
}

.paginator-container {
    display: flex;
    gap: var(--small-gap);
}

.paginator-button,
.paginator-arrow-button {
    padding: 6px 10px;
    border: 1px solid;
    background-color: var(--background-color);
    color: var(--text-color);
    cursor: pointer;
}

.paginator-button.active {
    background-color: var(--text-color);
    color: var(--background-color);
}

.paginator-button:hover,
.paginator-arrow-button:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

/* ================================================================================================================== */
/* Global styles (where order matters) */
/* ================================================================================================================== */
.hidden {
    display: none;
}

.desktop-hidden-flex {
    display: none;
}

@media (max-width: 460px) and (max-resolution: 1dppx),
    (max-width: 790px) and (min-resolution: 1.01dppx) and (max-resolution: 1.75dppx),
    (max-width: 920px) and (min-resolution: 1.76dppx) {

    .desktop-hidden-flex {
        display: flex;
    }

    .mobile-hidden {
        display: none;
    }
}