.ijpsc-search-shell,
.ijpsc-results {
    box-sizing: border-box;
    width: 100%;
    color: #10263e;
    font-family: inherit;
}
.ijpsc-search-shell *,
.ijpsc-results * {
    box-sizing: border-box;
}
.ijpsc-search-shell {
    margin: 0 0 22px;
    padding: 20px;
    border: 1px solid #cbd9e4;
    border-top: 3px solid #0d466f;
    background: #f7fafc;
}
.ijpsc-search-shell.is-compact {
    padding: 12px;
    margin-bottom: 14px;
    border-top-width: 2px;
}
.ijpsc-search-shell.is-advanced {
    margin-bottom: 14px;
}

.ijpsc-search-shell.is-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #c7d5df;
    border-top: 0;
    background: #f7f9fb;
}
.ijpsc-search-shell.is-header.is-awaiting-placement {
    visibility: hidden;
}
.ijpsc-search-shell.is-header.is-placed,
.ijpsc-search-shell.is-header.is-placement-fallback {
    visibility: visible;
}
.ijpsc-header-search-label {
    color: #0a4169;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.ijpsc-search-shell.is-header .ijpsc-search-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}
.ijpsc-search-shell.is-header .ijpsc-search-input,
.ijpsc-search-shell.is-header .ijpsc-search-button {
    height: 40px;
}
.ijpsc-search-shell.is-header .ijpsc-search-input {
    line-height: 40px !important;
    padding-left: 40px !important;
}
.ijpsc-search-shell.is-header .ijpsc-search-button {
    min-width: 92px;
    padding: 0 18px !important;
}
.ijpsc-search-heading {
    margin: 0 0 15px;
}
.ijpsc-search-kicker,
.ijpsc-results-kicker {
    display: block;
    margin: 0 0 4px;
    color: #1b6795;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.ijpsc-search-heading h2,
.ijpsc-results-header h2 {
    margin: 0;
    color: #0a3e63;
    font-size: clamp(23px, 2.1vw, 31px);
    line-height: 1.15;
}
.ijpsc-search-heading p {
    margin: 7px 0 0;
    color: #506070;
    font-size: 14px;
}
.ijpsc-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
    margin: 0;
}
.ijpsc-search-input-wrap {
    position: relative;
    min-width: 0;
}
.ijpsc-search-input {
    display: block;
    width: 100% !important;
    height: 48px;
    margin: 0 !important;
    padding: 0 15px 0 43px !important;
    border: 1px solid #b9cbd9 !important;
    border-radius: 2px !important;
    background: #fff !important;
    color: #15283c !important;
    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 48px !important;
    box-shadow: none !important;
}
.ijpsc-search-input:focus {
    outline: 2px solid rgba(31, 112, 166, .18) !important;
    border-color: #1f70a6 !important;
}
.ijpsc-search-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    width: 15px;
    height: 15px;
    border: 2px solid #547287;
    border-radius: 50%;
    transform: translateY(-57%);
    pointer-events: none;
}
.ijpsc-search-icon:after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 6px;
    height: 2px;
    background: #547287;
    transform: rotate(45deg);
    transform-origin: left center;
}
.ijpsc-search-button,
.ijpsc-filter-actions button,
.ijpsc-primary-link {
    border: 1px solid #0a4169 !important;
    border-radius: 2px !important;
    background: #0a4169 !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
.ijpsc-search-button {
    min-width: 116px;
    height: 48px;
    padding: 0 24px !important;
    cursor: pointer;
}
.ijpsc-search-button:hover,
.ijpsc-filter-actions button:hover,
.ijpsc-primary-link:hover {
    background: #072f4d !important;
    color: #fff !important;
}
.ijpsc-search-suggestions {
    position: absolute;
    z-index: 99999;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 430px;
    overflow-y: auto;
    border: 1px solid #b7cad8;
    background: #fff;
    box-shadow: 0 12px 26px rgba(8, 42, 67, .17);
}
.ijpsc-search-suggestions[hidden] {
    display: none !important;
}
.ijpsc-suggestion {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid #e3eaf0;
    color: #17324b !important;
    text-decoration: none !important;
}
.ijpsc-suggestion:last-child {
    border-bottom: 0;
}
.ijpsc-suggestion:hover,
.ijpsc-suggestion.is-active {
    background: #eef5fa;
}
.ijpsc-suggestion strong {
    display: block;
    margin: 0 0 4px;
    color: #0a4169;
    font-size: 14px;
    line-height: 1.3;
}
.ijpsc-suggestion-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    color: #5a6b79;
    font-size: 12px;
    line-height: 1.4;
}
.ijpsc-suggestion-empty {
    padding: 13px 14px;
    color: #61717d;
    font-size: 13px;
}
.ijpsc-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 11px;
    margin: 0 0 18px;
    padding: 15px;
    border: 1px solid #cfdae3;
    background: #f4f7fa;
}
.ijpsc-filter-field {
    display: block;
    margin: 0;
}
.ijpsc-filter-field > span {
    display: block;
    margin: 0 0 5px;
    color: #31475a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ijpsc-filter-field select {
    display: block;
    width: 100% !important;
    height: 38px;
    margin: 0 !important;
    padding: 0 28px 0 9px !important;
    border: 1px solid #bfcfdb !important;
    border-radius: 2px !important;
    background-color: #fff !important;
    color: #18334b !important;
    font-family: inherit !important;
    font-size: 12px !important;
    box-shadow: none !important;
}
.ijpsc-filter-actions {
    display: flex;
    align-items: end;
    gap: 9px;
}
.ijpsc-filter-actions button,
.ijpsc-filter-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    cursor: pointer;
}
.ijpsc-filter-actions a {
    border: 1px solid #9db4c4;
    background: #fff;
    color: #0a4169 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}
.ijpsc-results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 8px;
    padding: 0 0 12px;
    border-bottom: 2px solid #0a4169;
}
.ijpsc-results-header strong {
    color: #0a4169;
    font-size: 13px;
    white-space: nowrap;
}
.ijpsc-query-summary {
    margin: 10px 0 14px;
    color: #4c5f70;
    font-size: 14px;
}
.ijpsc-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.ijpsc-result-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0 !important;
    padding: 17px;
    border: 1px solid #cbd9e4;
    border-top: 4px solid #9eb8c9;
    background: #fff;
    box-shadow: none;
}
.ijpsc-result-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    color: #5d6f7c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.ijpsc-result-doi {
    max-width: 52%;
    overflow-wrap: anywhere;
    color: #0a5790 !important;
    text-align: right;
    text-decoration: none !important;
    text-transform: none;
}
.ijpsc-result-card h3 {
    margin: 0 0 7px !important;
    padding: 0 !important;
    border: 0 !important;
    color: #073d63 !important;
    font-size: 18px !important;
    line-height: 1.28 !important;
}
.ijpsc-result-card h3 a {
    color: #073d63 !important;
    text-decoration: none !important;
}
.ijpsc-result-card h3 a:hover {
    text-decoration: underline !important;
}
.ijpsc-result-authors,
.ijpsc-result-institutions,
.ijpsc-result-abstract {
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}
.ijpsc-result-authors {
    color: #233f57;
    font-weight: 600;
}
.ijpsc-result-authors a {
    color: #0a5790 !important;
    text-decoration: none !important;
}
.ijpsc-result-institutions {
    color: #61717d;
    font-size: 12px !important;
}
.ijpsc-result-abstract {
    color: #455967;
}
.ijpsc-result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 3px 0 13px;
}
.ijpsc-result-tags span {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid #cad9e4;
    background: #f1f6f9;
    color: #174b70;
    font-size: 10px;
    line-height: 1.25;
}
.ijpsc-result-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 3px;
}
.ijpsc-result-actions a {
    color: #0a5790 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}
.ijpsc-result-actions a.ijpsc-primary-link,
.ijpsc-result-actions a.ijpsc-primary-link:link,
.ijpsc-result-actions a.ijpsc-primary-link:visited,
.ijpsc-result-actions a.ijpsc-primary-link:hover,
.ijpsc-result-actions a.ijpsc-primary-link:focus {
    background: #0a4169 !important;
    color: #fff !important;
    border-color: #0a4169 !important;
    text-decoration: none !important;
}
.ijpsc-result-actions a.ijpsc-primary-link:hover,
.ijpsc-result-actions a.ijpsc-primary-link:focus {
    background: #072f4d !important;
    color: #fff !important;
}
.ijpsc-primary-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 13px;
}
.ijpsc-no-results {
    padding: 26px;
    border: 1px solid #d4dee6;
    background: #f8fafb;
    text-align: center;
}
.ijpsc-no-results h3 {
    margin: 0 0 6px;
    color: #0a4169;
}
.ijpsc-no-results p {
    margin: 0;
    color: #5f6f7b;
}
.ijpsc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 20px 0 0;
    padding: 13px;
    border-top: 1px solid #d4dfe7;
}
.ijpsc-pagination a {
    padding: 6px 11px;
    border: 1px solid #a9becc;
    color: #0a4169 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}
.ijpsc-pagination span {
    color: #526573;
    font-size: 12px;
}
@media (max-width: 1080px) {
    .ijpsc-filter-form {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}
@media (max-width: 760px) {
    .ijpsc-search-shell.is-header {
        grid-template-columns: 1fr;
        gap: 7px;
    }
    .ijpsc-header-search-label {
        font-size: 12px;
    }
    .ijpsc-search-form {
        grid-template-columns: 1fr;
    }
    .ijpsc-search-shell.is-header .ijpsc-search-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .ijpsc-search-button {
        width: 100%;
    }
    .ijpsc-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ijpsc-result-grid {
        grid-template-columns: 1fr;
    }
    .ijpsc-results-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}
@media (max-width: 500px) {
    .ijpsc-search-shell {
        padding: 12px;
    }
    .ijpsc-search-shell.is-header {
        padding: 8px;
    }
    .ijpsc-search-shell.is-header .ijpsc-search-form {
        grid-template-columns: 1fr;
    }
    .ijpsc-search-shell.is-header .ijpsc-search-button {
        width: 100%;
    }
    .ijpsc-filter-form {
        grid-template-columns: 1fr;
    }
    .ijpsc-result-topline {
        flex-direction: column;
        gap: 5px;
    }
    .ijpsc-result-doi {
        max-width: 100%;
        text-align: left;
    }
}

/* Autocomplete is mounted at body level so legacy theme wrappers cannot clip it. */
.ijpsc-search-suggestions.is-floating {
    position: fixed !important;
    z-index: 2147483000 !important;
    right: auto !important;
    max-height: min(62vh, 560px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
.ijpsc-suggestion-all,
.ijpsc-suggestion-all:visited {
    display: block;
    padding: 12px 14px;
    border-top: 2px solid #0a4169;
    background: #f2f7fa;
    color: #0a4169 !important;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
}
.ijpsc-suggestion-all:hover,
.ijpsc-suggestion-all:focus {
    background: #0a4169;
    color: #fff !important;
}
.ijpsc-primary-link,
.ijpsc-primary-link:link,
.ijpsc-primary-link:visited,
.ijpsc-primary-link:hover,
.ijpsc-primary-link:focus,
.ijpsc-primary-link:active {
    color: #fff !important;
}


/* Complete server-rendered IJPSC journal and research-search header. */
.ijpsc-journal-search-header,
.ijpsc-journal-search-header * {
    box-sizing: border-box;
}
.ijpsc-journal-search-header {
    position: relative;
    z-index: 20;
    width: 100%;
    margin: 0;
    border: 1px solid #cbd7e1;
    background: #fff;
    color: #10263e;
    font-family: inherit;
}
.ijpsc-journal-header-title {
    padding: 18px 20px 12px;
}
.ijpsc-journal-header-title h1 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #102d4c !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(25px, 2.15vw, 34px) !important;
    font-weight: 400 !important;
    line-height: 1.16 !important;
}
.ijpsc-journal-header-rule {
    height: 1px;
    margin: 0 20px;
    background: #c7d2dc;
}
.ijpsc-journal-header-search-form {
    padding: 12px 20px 10px;
}
.ijpsc-journal-header-search-form .ijpsc-search-input,
.ijpsc-journal-header-search-form .ijpsc-search-button {
    height: 44px;
}
.ijpsc-journal-header-search-form .ijpsc-search-input {
    line-height: 44px !important;
}
.ijpsc-journal-header-search-form .ijpsc-search-button {
    min-width: 104px;
}
.ijpsc-journal-header-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    padding: 0 20px 12px;
}
.ijpsc-journal-header-badges span {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #d1dce5;
    border-radius: 2px;
    background: #f4f7f9;
    color: #27435d;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}
.ijpsc-journal-header-nav {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0a4169;
}
.ijpsc-journal-header-nav a,
.ijpsc-journal-header-nav a:link,
.ijpsc-journal-header-nav a:visited {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    padding: 0 16px;
    border-right: 1px solid rgba(255,255,255,.15);
    background: transparent;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    -webkit-text-fill-color: #fff !important;
}
.ijpsc-journal-header-nav a:hover,
.ijpsc-journal-header-nav a:focus {
    background: #073552;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
.ijpsc-journal-header-notice {
    display: grid;
    gap: 4px;
    padding: 11px 20px 12px;
    border-top: 1px solid #d8e0e6;
    background: #f3f6f8;
    color: #31485b;
    font-size: 12px;
    line-height: 1.45;
}
.ijpsc-journal-header-notice a,
.ijpsc-journal-header-notice a:visited {
    width: max-content;
    max-width: 100%;
    color: #b00020 !important;
    font-weight: 700;
    text-decoration: none !important;
}
.ijpsc-journal-header-notice a:hover,
.ijpsc-journal-header-notice a:focus {
    color: #7f0017 !important;
    text-decoration: underline !important;
}

/* Keep all action buttons readable against legacy theme link rules. */
.ijpsc-results .ijpsc-result-actions a.ijpsc-primary-link,
.ijpsc-results .ijpsc-result-actions a.ijpsc-primary-link:link,
.ijpsc-results .ijpsc-result-actions a.ijpsc-primary-link:visited,
.ijpsc-results .ijpsc-result-actions a.ijpsc-primary-link:hover,
.ijpsc-results .ijpsc-result-actions a.ijpsc-primary-link:focus,
.ijpsc-search-shell .ijpsc-search-button,
.ijpsc-search-shell .ijpsc-filter-actions button,
.ijpsc-journal-search-header .ijpsc-search-button {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: none !important;
}

@media (max-width: 900px) {
    .ijpsc-journal-header-badges {
        justify-content: flex-start;
    }
    .ijpsc-journal-header-nav a,
    .ijpsc-journal-header-nav a:link,
    .ijpsc-journal-header-nav a:visited {
        flex: 1 1 auto;
        justify-content: center;
        padding: 0 11px;
    }
}
@media (max-width: 620px) {
    .ijpsc-journal-header-title {
        padding: 14px 13px 10px;
    }
    .ijpsc-journal-header-rule {
        margin: 0 13px;
    }
    .ijpsc-journal-header-search-form {
        grid-template-columns: 1fr;
        padding: 10px 13px;
    }
    .ijpsc-journal-header-search-form .ijpsc-search-button {
        width: 100%;
    }
    .ijpsc-journal-header-badges {
        padding: 0 13px 10px;
    }
    .ijpsc-journal-header-badges span {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        text-align: center;
        white-space: normal;
    }
    .ijpsc-journal-header-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ijpsc-journal-header-nav a,
    .ijpsc-journal-header-nav a:link,
    .ijpsc-journal-header-nav a:visited {
        justify-content: flex-start;
        border-right: 1px solid rgba(255,255,255,.15);
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .ijpsc-journal-header-notice {
        padding: 10px 13px;
    }
}
