.nsj-search-form input[type="text"] {
    color: #444;
    font-weight: 700;
    background-color: rgba(255, 255, 255, .7);
}

.nsj-search-form input[type="text"]:not(:focus) { border-color: #444; }
.nsj-search-form input[type="text"]::placeholder { color: inherit !important; opacity: 1; }

#banner .nsj-search-form select,
#banner .nsj-search-form input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 .5rem;
}

#search-top .nsj-search-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .65rem;
}

#search-top .nsj-search-form :is(input[type="text"], select) {
    width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}

#search-top .nsj-search-form input[type="text"] { grid-column: span 3; }
#search-top .nsj-search-form select { grid-column: span 2; }

#search-top .nsj-search-form button {
    grid-column: 1 / -1;
    justify-self: end;
    margin: 0;
}

@media (min-width: 737px) and (max-width: 980px) {
    #search-top:has(.nsj-search-form) { max-width: calc(100vw - 2rem); }
}

@media (max-width: 736px) {
    #search-top .nsj-search-form { grid-template-columns: minmax(0, 1fr); }
    #search-top .nsj-search-form :is(input[type="text"], select) { grid-column: auto; }
    #search-top .nsj-search-form button { width: 100%; }
}

.nsj-no-results { max-width: 54rem; }
.nsj-no-results h2 { margin: 0 0 .55rem; }
.nsj-no-results p { margin: 0 0 .85rem; }
.nsj-no-results-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem 1rem;
}
.nsj-no-results-actions a { margin: 0; }
.nsj-no-results .nsj-no-results-alert { margin: 1rem 0 0; }

/* The shared location popup is appended to the body. This stylesheet is Nuclear Sector Jobs only. */
.autocomplete {
    box-sizing: border-box;
    max-width: calc(100vw - 2rem);
    background: #fff;
    color: #243749;
    border: 1px solid #79899a;
    border-radius: .4rem;
    box-shadow: 0 .3rem .85rem rgba(23, 38, 54, .25);
}

.autocomplete > div {
    min-height: 2.5rem;
    padding: .45rem .7rem;
    line-height: 1.45;
    cursor: pointer;
}

.autocomplete > div + div { border-top: 1px solid #dbe3eb; }
.autocomplete > div:hover,
.autocomplete > div.selected {
    background: #dceaff;
    color: #152c46;
}
.autocomplete > div strong { color: inherit; }

.nsj-recruiting-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nsj-recruiting-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 5rem;
    padding: .75rem;
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: .4rem;
}

.nsj-recruiting-grid a:hover,
.nsj-recruiting-grid a:focus-visible {
    border-color: #536da6;
}

.nsj-recruiting-grid img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 8rem;
    margin: 0;
    object-fit: contain;
}

@media (max-width: 980px) {
    #main-wrapper:has(.nsj-recruiting-grid) { max-width: 100vw; }
    #main-wrapper > .container:has(.nsj-recruiting-grid) { max-width: calc(100vw - 2rem); }
    .nsj-recruiting-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .nsj-recruiting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.nsj-latest-jobs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nsj-latest-jobs li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    align-items: center;
    gap: .75rem;
    padding: .65rem 0;
}

.nsj-latest-jobs li + li { border-top: 1px solid #e1e5ea; }
.nsj-latest-jobs img { display: block; width: 100%; max-width: 120px; max-height: 60px; object-fit: contain; }
.nsj-latest-meta { line-height: 1.45; }

.nsj-featured-recruiters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.nsj-featured-recruiters a {
    display: grid;
    place-items: center;
    min-height: 5rem;
    padding: .5rem;
}

.nsj-featured-recruiters img { display: block; max-width: 100%; max-height: 4rem; width: auto; height: auto; }

@media (max-width: 736px) {
    .nsj-home-feature-row > div { width: 100%; }
}
