/* LinkedIn-style surface pass: warm canvas, flat white cards, pill search. */

body,
.boxed {
    background-color: #f4f2ee !important;
}

/* Cards: hairline border and 8px radius instead of a drop shadow */
.shadow-box {
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, .08) !important;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    transition: none !important;
}

/* Header search becomes a pill with the magnifier inside */
.header-search-form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 38px;
    max-width: 420px;
    padding: 0 4px 0 2px;
    background: #edf3f8;
    border: 1px solid transparent;
    border-radius: 999px;
    box-sizing: border-box;
    -webkit-transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
    transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.header-search-form:focus-within {
    background: #ffffff;
    border-color: rgba(0, 0, 0, .15);
    box-shadow: 0 0 0 2px #0a66c2;
}

.header-search-field {
    background: transparent !important;
    border: 0 !important;
    height: 36px;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 !important;
}

.header-search-field input[type="search"] {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px;
    color: rgba(0, 0, 0, .9);
    outline: none;
}

.header-search-field input[type="search"]::placeholder {
    color: rgba(0, 0, 0, .45) !important;
}

.header-search-icon,
.header-search-icon:hover,
.header-search-icon:focus {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(0, 0, 0, .6);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
}

.header-search-icon:hover,
.header-search-icon:focus {
    background: rgba(0, 0, 0, .06);
    color: #0a66c2;
    outline: none;
}

/* Focus dims the page behind the search */
.search-scrim {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    pointer-events: none;
    -webkit-transition: opacity .15s ease;
    transition: opacity .15s ease;
    z-index: 1029;
}

body.search-focused .search-scrim {
    opacity: 1;
    pointer-events: auto;
}

body.search-focused .header-search-form {
    position: relative;
    z-index: 1031;
}

@media (prefers-reduced-motion: reduce) {
    .search-scrim,
    .header-search-form {
        -webkit-transition: none;
        transition: none;
    }
}
