body.jepcs-radar-modal-open {
    overflow: hidden;
}

.jepcs-radar-sidebar-launcher {
    text-align: center;
    border-top: 1px solid #dddddd;
    padding: 24px 0 25px;
    font-family: Arial, Helvetica, sans-serif;
}

.jepcs-radar-sidebar-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 9px;
    color: #16803a;
}

.jepcs-radar-sidebar-icon svg {
    display: block;
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.jepcs-radar-sidebar-icon svg circle:first-child {
    fill: #16803a;
    stroke: #16803a;
}

.jepcs-radar-sidebar-title {
    color: #222222;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 600;
}

.jepcs-radar-sidebar-copy {
    max-width: 190px;
    margin: 7px auto 11px;
    color: #6b6b6b;
    font-size: 12px;
    line-height: 1.45;
}

.jepcs-radar-open {
    appearance: none;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    padding: 5px 0;
    background: transparent;
    color: #16803a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    cursor: pointer;
}

.jepcs-radar-open:hover,
.jepcs-radar-open:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: none;
}

.jepcs-radar-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 28px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.jepcs-radar-modal:target,
.jepcs-radar-modal.is-open {
    display: flex;
}

.jepcs-radar-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 24, 20, 0.60);
    backdrop-filter: blur(2px);
}

.jepcs-radar-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1180px, 95vw);
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid #dfe3e0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.jepcs-radar-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    padding: 23px 27px 17px;
    border-bottom: 1px solid #e8e8e8;
}

.jepcs-radar-modal-header h2 {
    margin: 0;
    color: #222222;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.60rem;
    line-height: 1.25;
    font-weight: 700;
}

.jepcs-radar-modal-header p {
    margin: 6px 0 0;
    color: #707070;
    font-size: 0.80rem;
    line-height: 1.45;
}

.jepcs-radar-close {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f5f6f5;
    color: #3b3b3b;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

.jepcs-radar-close:hover,
.jepcs-radar-close:focus-visible {
    background: #edf5ef;
    color: #16803a;
    outline: none;
}

.jepcs-radar-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 13px 27px;
    border-bottom: 1px solid #ededed;
    background: #fbfcfb;
}

.jepcs-radar-search {
    flex: 1;
    max-width: 500px;
}

.jepcs-radar-search input {
    width: 100%;
    height: 41px;
    padding: 0 13px;
    border: 1px solid #d5d9d6;
    border-radius: 6px;
    background: #ffffff;
    color: #292929;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    box-sizing: border-box;
}

.jepcs-radar-search input:focus {
    border-color: #16803a;
    box-shadow: 0 0 0 2px rgba(22, 128, 58, 0.08);
    outline: none;
}

.jepcs-radar-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6d6d6d;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.jepcs-radar-summary-dot {
    color: #16803a;
}

.jepcs-radar-search-results[hidden] {
    display: none !important;
}

.jepcs-radar-search-results {
    position: absolute;
    z-index: 100001;
    top: 137px;
    left: 27px;
    width: min(500px, calc(100% - 54px));
    max-height: 290px;
    overflow-y: auto;
    border: 1px solid #dcdedc;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.13);
}

.jepcs-radar-search-option {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    padding: 10px 13px;
    border: 0;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
    color: #303030;
    text-align: left;
    cursor: pointer;
}

.jepcs-radar-search-option:last-child {
    border-bottom: 0;
}

.jepcs-radar-search-option:hover,
.jepcs-radar-search-option:focus-visible {
    background: #f4f8f5;
    outline: none;
}

.jepcs-radar-search-option span:first-child {
    font-size: 0.79rem;
    font-weight: 600;
}

.jepcs-radar-search-option span:last-child {
    color: #7d7d7d;
    font-size: 0.69rem;
}

.jepcs-radar-search-empty {
    padding: 13px;
    color: #777777;
    font-size: 0.76rem;
}

.jepcs-radar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
    min-height: 470px;
    overflow: hidden;
}

.jepcs-radar-graph-panel {
    position: relative;
    min-width: 0;
    padding: 17px 17px 10px;
    border-right: 1px solid #e5e5e5;
    background: radial-gradient(circle at center, rgba(22, 128, 58, 0.045), rgba(255, 255, 255, 0) 58%);
}

.jepcs-radar-graph {
    width: 100%;
    height: 420px;
}

.jepcs-radar-graph svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.jepcs-radar-graph-help {
    position: absolute;
    left: 19px;
    bottom: 12px;
    color: #8a8a8a;
    font-size: 0.66rem;
}

.jepcs-radar-edge {
    stroke: #d9dedb;
    opacity: 0.82;
}

.jepcs-radar-edge.is-active {
    stroke: #79b68e;
    opacity: 1;
}

.jepcs-radar-node {
    cursor: pointer;
}

.jepcs-radar-node circle {
    fill: #ffffff;
    stroke: #a9cbb4;
    stroke-width: 2;
    transition: fill 0.15s ease, stroke 0.15s ease, transform 0.15s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.jepcs-radar-node:hover circle,
.jepcs-radar-node:focus circle {
    fill: #f1f8f3;
    stroke: #16803a;
    transform: scale(1.06);
}

.jepcs-radar-node.is-selected circle {
    fill: #16803a;
    stroke: #16803a;
}

.jepcs-radar-node-count {
    fill: #16803a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}

.jepcs-radar-node.is-selected .jepcs-radar-node-count {
    fill: #ffffff;
}

.jepcs-radar-node-label {
    fill: #343434;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
}

.jepcs-radar-detail {
    min-width: 0;
    overflow-y: auto;
    padding: 23px;
    background: #ffffff;
}

.jepcs-radar-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 390px;
    text-align: center;
}

.jepcs-radar-detail-icon {
    margin-bottom: 9px;
    color: #16803a;
    font-size: 2.25rem;
}

.jepcs-radar-detail-empty h3 {
    margin: 0;
    color: #2c2c2c;
    font-size: 1rem;
}

.jepcs-radar-detail-empty p {
    max-width: 250px;
    margin: 8px 0 0;
    color: #777777;
    font-size: 0.74rem;
    line-height: 1.5;
}

.jepcs-radar-detail-label {
    margin-bottom: 5px;
    color: #16803a;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.jepcs-radar-detail-content h3 {
    margin: 0;
    color: #242424;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.32rem;
    line-height: 1.3;
}

.jepcs-radar-detail-count {
    margin-top: 5px;
    color: #777777;
    font-size: 0.73rem;
}

.jepcs-radar-related-wrap,
.jepcs-radar-papers-wrap {
    margin-top: 22px;
}

.jepcs-radar-related-wrap h4,
.jepcs-radar-papers-wrap h4 {
    margin: 0 0 9px;
    color: #333333;
    font-size: 0.78rem;
    font-weight: 700;
}

.jepcs-radar-related {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.jepcs-radar-topic-chip {
    appearance: none;
    padding: 6px 8px;
    border: 1px solid #d8e3db;
    border-radius: 999px;
    background: #f7faf8;
    color: #356043;
    font-size: 0.67rem;
    line-height: 1.2;
    cursor: pointer;
}

.jepcs-radar-topic-chip:hover,
.jepcs-radar-topic-chip:focus-visible {
    border-color: #16803a;
    color: #16803a;
    outline: none;
}

.jepcs-radar-none {
    color: #858585;
    font-size: 0.70rem;
}

.jepcs-radar-papers {
    display: flex;
    flex-direction: column;
}

.jepcs-radar-paper-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #eeeeee;
    color: #333333 !important;
    text-decoration: none !important;
}

.jepcs-radar-paper-link:hover,
.jepcs-radar-paper-link:focus-visible {
    color: #16803a !important;
    outline: none;
}

.jepcs-radar-paper-title {
    font-size: 0.73rem;
    line-height: 1.4;
    font-weight: 600;
}

.jepcs-radar-paper-arrow {
    color: #16803a;
}

.jepcs-radar-more {
    margin-top: 9px;
    color: #777777;
    font-size: 0.68rem;
}

.jepcs-radar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 27px;
    border-top: 1px solid #e7e7e7;
    background: #fbfcfb;
    color: #7a7a7a;
    font-size: 0.67rem;
}

.jepcs-radar-reset {
    appearance: none;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #16803a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.jepcs-radar-reset:hover,
.jepcs-radar-reset:focus-visible {
    text-decoration: underline;
    outline: none;
}

.jepcs-radar-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 900px) {
    .jepcs-radar-modal {
        padding: 14px;
    }

    .jepcs-radar-dialog {
        width: 96vw;
        max-height: 94vh;
    }

    .jepcs-radar-layout {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .jepcs-radar-graph-panel {
        border-right: 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .jepcs-radar-detail {
        min-height: 250px;
    }

    .jepcs-radar-detail-empty {
        min-height: 220px;
    }
}

@media (max-width: 620px) {
    .jepcs-radar-modal {
        padding: 0;
    }

    .jepcs-radar-dialog {
        width: 100vw;
        height: 100vh;
        max-height: none;
        border: 0;
        border-radius: 0;
    }

    .jepcs-radar-modal-header {
        padding: 17px 16px 13px;
    }

    .jepcs-radar-modal-header h2 {
        font-size: 1.32rem;
    }

    .jepcs-radar-toolbar {
        display: block;
        padding: 11px 16px;
    }

    .jepcs-radar-search {
        max-width: none;
    }

    .jepcs-radar-summary {
        margin-top: 8px;
    }

    .jepcs-radar-search-results {
        top: 126px;
        left: 16px;
        width: calc(100% - 32px);
    }

    .jepcs-radar-graph-panel {
        padding: 8px;
    }

    .jepcs-radar-graph {
        height: 390px;
    }

    .jepcs-radar-detail {
        padding: 19px 16px;
    }

    .jepcs-radar-footer {
        padding: 10px 16px;
    }
}


/* Source launcher is immediately moved into the existing sidebar by the inline bootstrap. */
.jepcs-radar-launcher-source {
    visibility: hidden;
}
.pkp_structure_sidebar .jepcs-radar-launcher-source,
.jepcs-radar-launcher-source.jepcs-radar-sidebar-launcher {
    visibility: visible;
}


.jepcs-radar-empty-data {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    text-align: center;
    color: #666666;
    box-sizing: border-box;
}

.jepcs-radar-empty-data[hidden] {
    display: none !important;
}

.jepcs-radar-empty-data strong {
    color: #222222;
    font-size: 1rem;
}

.jepcs-radar-empty-data span {
    max-width: 420px;
    font-size: 0.76rem;
    line-height: 1.5;
}
