/* J-HyTEL Citation Indexes — Teknomekanik-inspired list, Perpetua-led typography */
.jhct-container {
    box-sizing: border-box;
    width: 100%;
    margin: 24px 0 30px;
    padding: 0;
    color: #171217;
    background: transparent;
    font-family: "Perpetua", "Perpetua Std", Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.55;
}

.jhct-container *,
.jhct-container *::before,
.jhct-container *::after {
    box-sizing: border-box;
}

.jhct-counts {
    display: none;
    align-items: start;
    width: 100%;
    max-width: 420px;
    gap: 14px;
    margin: 0 0 31px;
    padding: 0;
    text-align: center;
}

.jhct-source {
    display: none;
    min-width: 0;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

.jhct-source a {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none !important;
}

.jhct-source img {
    display: block;
    width: auto;
    max-width: 92px;
    height: 31px;
    max-height: 31px;
    margin: 0 auto;
    object-fit: contain;
}

.jhct-source-google img {
    max-width: 42px;
}

.jhct-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    color: #fff;
    background: #646464;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.jhct-list {
    width: 100%;
    margin: 0;
    padding: 0;
}

.jhct-entry {
    margin: 0 0 23px;
    padding: 0;
    color: #171217;
    font-family: "Perpetua", "Perpetua Std", Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.jhct-entry:last-child {
    margin-bottom: 0;
}

.jhct-authors {
    margin: 0 0 2px;
    color: #171217;
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
}

.jhct-citation-line {
    margin: 0 0 2px;
    color: #171217;
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
}

.jhct-title {
    color: #171217;
    font-family: inherit;
    font-size: inherit;
    font-style: normal;
    font-weight: 700;
    line-height: inherit;
}

.jhct-doi {
    display: inline;
    color: #315dff !important;
    font-family: "Perpetua", "Perpetua Std", Georgia, "Times New Roman", serif;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.jhct-doi:hover,
.jhct-doi:focus {
    color: #610c3a !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.jhct-loader {
    width: 42px;
    height: 42px;
    margin: 18px auto;
    border: 3px solid #eee6eb;
    border-top-color: #610c3a;
    border-radius: 50%;
    animation: jhct-spin 0.9s linear infinite;
}

@keyframes jhct-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767.98px) {
    .jhct-container {
        width: 100%;
        margin: 20px 0 26px;
        padding: 0;
        font-size: 16.5px;
        line-height: 1.55;
    }

    .jhct-counts {
        width: 100%;
        max-width: none;
        gap: 8px;
        margin-bottom: 27px;
    }

    .jhct-source {
        min-height: 54px;
    }

    .jhct-source img {
        max-width: 82px;
        height: 29px;
        max-height: 29px;
    }

    .jhct-source-google img {
        max-width: 38px;
    }

    .jhct-entry {
        margin-bottom: 21px;
        font-size: 16.5px;
    }
}

@media (max-width: 359.98px) {
    .jhct-counts {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        row-gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jhct-loader { animation: none; }
}
