/* Shared presentation for the database-backed content center. */
.jh-content-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 42px 0 26px;
    padding: 20px 24px;
    background: #f5f7f4;
    border-radius: 8px;
}

.jh-content-search {
    display: flex;
    flex: 0 0 320px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d8ddd5;
    border-radius: 4px;
}

.jh-search-input {
    min-width: 0;
    flex: 1;
    height: 42px;
    padding: 0 14px;
    color: #333;
    font-size: 14px;
    line-height: 42px;
    background: transparent;
    border: 0;
    outline: 0;
}

.jh-search-button {
    width: 72px;
    color: #fff;
    font-size: 14px;
    background: #4d7c3a;
    border: 0;
    cursor: pointer;
}

.jh-category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.jh-category-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    color: #555;
    font-size: 14px;
    border-radius: 18px;
}

.jh-category-nav a span {
    color: #8d9688;
    font-size: 12px;
}

.jh-category-nav a:hover,
.jh-category-nav a.is-active {
    color: #fff;
    background: #4d7c3a;
}

.jh-category-nav a:hover span,
.jh-category-nav a.is-active span {
    color: rgba(255, 255, 255, .75);
}

.jh-result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 20px;
    padding-bottom: 12px;
    color: #24301f;
    font-size: 18px;
    border-bottom: 1px solid #dfe4dc;
}

.jh-result-summary span {
    color: #8c9588;
    font-size: 13px;
}

.jh-news-list,
.jh-case-list {
    list-style: none;
}

.jh-news-item {
    border-bottom: 1px dashed #dcdcdc;
}

.information-list.jh-news-list > .jh-news-item {
    height: auto;
    min-height: 0;
    padding: 0;
    line-height: normal;
}

.jh-news-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 4px;
}

.information-list.jh-news-list > .jh-news-item .jh-news-link,
.information-list.jh-news-list > .jh-news-item .jh-news-link:hover {
    display: flex;
    align-items: center;
    overflow: visible;
    padding: 18px 4px;
    background: none;
    line-height: normal;
    white-space: normal;
}

.information-list.jh-news-list > .jh-news-item .jh-news-link .time {
    position: static;
    line-height: normal;
}

.jh-news-cover {
    display: block;
    width: 164px;
    height: 104px;
    flex: 0 0 164px;
    overflow: hidden;
    background: #edf0eb;
}

.jh-news-cover img,
.jh-case-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.jh-news-link:hover img,
.jh-case-item:hover img {
    transform: scale(1.035);
}

.jh-news-copy {
    min-width: 0;
    flex: 1;
}

.jh-news-copy strong {
    display: block;
    overflow: hidden;
    margin-bottom: 11px;
    color: #222;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.jh-news-copy small {
    display: -webkit-box;
    overflow: hidden;
    color: #777;
    font-size: 14px;
    line-height: 24px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.jh-news-link .time {
    flex: 0 0 94px;
    color: #999;
    font-size: 13px;
    text-align: right;
}

.jh-case-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.jh-case-item {
    display: block;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(24, 44, 17, .08);
    transition: box-shadow .3s ease, transform .3s ease;
}

.jh-case-item:hover {
    box-shadow: 0 12px 30px rgba(24, 44, 17, .15);
    transform: translateY(-3px);
}

.jh-case-cover {
    display: block;
    height: 230px;
    overflow: hidden;
    background: #edf0eb;
}

.jh-case-copy {
    display: block;
    padding: 20px 22px 24px;
}

.jh-case-copy small {
    display: block;
    margin-bottom: 10px;
    color: #769168;
    font-size: 12px;
}

.jh-case-copy strong {
    display: block;
    overflow: hidden;
    color: #222;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.jh-case-copy > span {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    margin-top: 10px;
    color: #777;
    font-size: 14px;
    line-height: 23px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.jh-case-more {
    display: block;
    margin-top: 16px;
    color: #4d7c3a;
    font-size: 13px;
    font-style: normal;
}

.jh-empty-state {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #818a7c;
    text-align: center;
    background: #f8f9f7;
    border: 1px dashed #d9dfd5;
}

.jh-empty-state strong {
    margin-bottom: 8px;
    color: #53614c;
    font-size: 20px;
    font-weight: 500;
}

.jh-pagination {
    padding: 34px 0 52px;
    text-align: center;
}

.jh-pagination a,
.jh-pagination span {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin: 3px;
    padding: 0 12px;
    color: #555;
    font-size: 14px;
    background: #f1f3ef;
    border-radius: 3px;
}

.jh-pagination a:hover,
.jh-pagination .current {
    color: #fff;
    background: #4d7c3a;
}

.jh-pagination .disabled {
    color: #aaa;
    cursor: default;
}

.jh-detail-page {
    padding: 54px 0 80px;
}

.jh-detail-article {
    max-width: 980px;
    margin: 0 auto;
    padding: 48px 56px 56px;
    background: #fff;
    box-shadow: 0 7px 28px rgba(19, 34, 14, .07);
}

.jh-detail-eyebrow {
    display: block;
    margin-bottom: 16px;
    color: #6c865f;
    font-size: 14px;
    text-align: center;
}

.jh-detail-title {
    margin: 0;
    color: #252d22;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}

.jh-detail-meta {
    margin: 16px 0 34px;
    color: #929b8e;
    font-size: 14px;
    text-align: center;
}

.jh-detail-source {
    margin: -10px 0 30px;
    padding: 18px 20px;
    background: #f7f8f5;
    border: 1px solid #e1e6dd;
    border-left: 3px solid #6e8f5b;
    border-radius: 4px;
}

.jh-detail-source-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.jh-detail-source-head strong {
    color: #35422f;
    font-size: 15px;
    font-weight: 600;
}

.jh-detail-source-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    color: #8a5b21;
    font-size: 12px;
    line-height: 1.4;
    background: #f8ead8;
    border-radius: 999px;
    white-space: nowrap;
}

.jh-detail-source-badge.is-confirmed {
    color: #446635;
    background: #e7f0e1;
}

.jh-detail-source-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: #65705f;
    font-size: 14px;
    line-height: 1.7;
}

.jh-detail-source-link {
    color: #4d7c3a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jh-detail-source-link:hover {
    color: #315b24;
}

.jh-detail-source-note {
    margin: 12px 0 0;
    padding-top: 12px;
    color: #7b8476;
    font-size: 13px;
    line-height: 1.75;
    white-space: pre-line;
    border-top: 1px dashed #d8ded4;
}

.jh-detail-summary {
    margin: 0 0 30px;
    padding: 20px 24px;
    color: #5e6958;
    font-size: 16px;
    line-height: 1.8;
    background: #f5f7f3;
    border-left: 3px solid #6e8f5b;
}

.jh-detail-cover {
    margin: 0 0 36px;
    text-align: center;
}

.jh-detail-cover img {
    display: block;
    max-width: 100%;
    max-height: 560px;
    margin: 0 auto;
    object-fit: cover;
}

.jh-detail-content {
    color: #333;
    font-size: 17px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.jh-detail-content p {
    margin: 0 0 1em;
}

.jh-detail-content img {
    max-width: 100%;
    height: auto;
}

.jh-detail-content table {
    max-width: 100%;
    border-collapse: collapse;
}

.jh-detail-content th,
.jh-detail-content td {
    padding: 8px 12px;
    border: 1px solid #ddd;
}

.jh-adjacent {
    display: flex;
    gap: 28px;
    max-width: 980px;
    margin: 28px auto 0;
    padding: 22px 0;
    color: #777;
    font-size: 14px;
    border-top: 1px solid #dde2d9;
    border-bottom: 1px solid #dde2d9;
}

.jh-adjacent a,
.jh-adjacent span {
    flex: 1;
    overflow: hidden;
    color: #596653;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.jh-adjacent a:last-child,
.jh-adjacent span:last-child {
    text-align: right;
}

.jh-related {
    max-width: 980px;
    margin: 38px auto 0;
}

.jh-related-title {
    margin-bottom: 18px;
    color: #30392c;
    font-size: 20px;
    font-weight: 500;
}

.jh-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.jh-related-card {
    display: block;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 15px rgba(19, 34, 14, .07);
}

.jh-related-card img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.jh-related-card span {
    display: -webkit-box;
    min-height: 62px;
    overflow: hidden;
    padding: 13px 15px;
    color: #394435;
    font-size: 15px;
    line-height: 22px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.jh-detail-actions {
    margin-top: 30px;
    text-align: center;
}

.jh-back-button {
    display: inline-block;
    padding: 10px 26px;
    color: #fff;
    background: #4d7c3a;
    border-radius: 3px;
}

.jh-home-empty {
    display: flex;
    min-height: 230px;
    align-items: center;
    justify-content: center;
    color: #8a9386;
    font-size: 16px;
    background: #f7f8f6;
}

@media (max-width: 1100px) {
    .jh-case-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .jh-content-tools {
        display: block;
        margin-top: 20px;
        padding: 15px;
    }

    .jh-content-search {
        width: 100%;
        margin-bottom: 14px;
    }

    .jh-category-nav {
        justify-content: flex-start;
    }

    .jh-news-cover {
        width: 112px;
        height: 82px;
        flex-basis: 112px;
    }

    .jh-news-link {
        gap: 12px;
    }

    .jh-news-copy strong {
        margin-bottom: 6px;
        font-size: 15px;
    }

    .jh-news-copy small {
        font-size: 13px;
        line-height: 20px;
        -webkit-line-clamp: 1;
    }

    .jh-news-link .time {
        display: none;
    }

    .jh-case-list {
        grid-template-columns: 1fr;
    }

    .jh-case-cover {
        height: 210px;
    }

    .jh-detail-page {
        padding: 24px 12px 45px;
    }

    .jh-detail-article {
        padding: 28px 18px 34px;
    }

    .jh-detail-title {
        font-size: 24px;
    }

    .jh-detail-source {
        margin-top: -8px;
        padding: 16px;
    }

    .jh-detail-source-head {
        align-items: flex-start;
    }

    .jh-detail-source-meta {
        display: block;
    }

    .jh-detail-source-meta > span {
        display: block;
        margin-top: 5px;
        overflow-wrap: anywhere;
    }

    .jh-detail-content {
        font-size: 16px;
    }

    .jh-adjacent {
        display: block;
        padding: 6px 12px;
    }

    .jh-adjacent a,
    .jh-adjacent span {
        display: block;
        padding: 10px 0;
        text-align: left !important;
    }

    .jh-related {
        padding: 0 12px;
    }

    .jh-related-grid {
        grid-template-columns: 1fr;
    }
}
