/* Topic keywords align with the heading and results, without inheriting
   the generic tag row's zero side margins. */
.kg-topic-tags {
    padding: 20px 0 0;
}
.kg-topic-tags > .hjopt-wrap.hjopt-tags {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    width: min(1000px, calc(100% - 64px));
    max-width: 1000px;
    margin: 0 auto;
}
.kg-topic-tags .hjopt-filterBtn {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 13px;
    border: 1px solid var(--exf-line);
    border-radius: 999px;
    background: var(--exf-soft);
    color: var(--exf-ink);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .01em;
    overflow-wrap: anywhere;
}
.kg-topic-tags + .hjopt-section {
    padding-top: 40px;
}

/* Topic and search results: the UL owns the layout, not its wrapper. */
.exf-topic-results.hjpt-blogGrid {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
}
.exf-topic-results > ul.hjopt-related-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}
.exf-topic-results .hjpt-blog-news {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    min-width: 0;
    padding: 30px 0;
    margin: 0;
    border-top: 1px solid var(--exf-line);
    text-align: left;
}
.exf-topic-results .hjpt-blog-news:last-child {
    border-bottom: 1px solid var(--exf-line);
}
.exf-topic-results .hjpt-blog-news > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 160px;
    max-width: 100%;
    background: var(--exf-soft);
}
.exf-topic-results .hjpt-blog-news > a > img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}
.exf-topic-results .hjpt-gathering-text {
    min-width: 0;
    overflow-wrap: anywhere;
}
.exf-topic-results .hjpt-news-ids {
    margin: 0 0 14px;
    font-size: 25px;
    line-height: 1.3;
    letter-spacing: -.025em;
}
.exf-topic-results .hjpt-news-ids > a {
    text-decoration: none;
}
.exf-topic-results .hjpt-news-ids > a:hover {
    text-decoration: underline;
}
.exf-topic-results .hjpt-gathering-text > p {
    margin: 0 0 16px;
    color: var(--exf-muted);
    font-size: 15px;
    line-height: 1.8;
}
.exf-topic-results .hjpt-gathering-text > a[href$=".pdf"] {
    display: inline-flex;
    padding: 6px 12px;
    border: 1px solid var(--exf-line);
    font-size: 12px;
    line-height: 1.6;
    text-decoration: none;
}
.exf-topic-results .hjpt-gathering-text > br {
    display: none;
}
.exf-topic-results .hjopt-card-faq {
    margin-top: 18px;
    border-top: 1px solid var(--exf-line);
    border-bottom: 1px solid var(--exf-line);
    font-size: 13px;
    line-height: 1.7;
}
.exf-topic-results .hjopt-card-faq > summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 12px 28px 12px 0;
    color: var(--exf-ink);
    font-weight: 600;
    line-height: 1.6;
}
.exf-topic-results .hjopt-card-faq > summary::-webkit-details-marker {
    display: none;
}
.exf-topic-results .hjopt-card-faq > summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 10px;
    color: var(--exf-accent);
    font-size: 20px;
    font-weight: 400;
}
.exf-topic-results .hjopt-card-faq[open] > summary::after {
    content: "−";
}
.exf-topic-results .hjopt-card-faq__list {
    padding: 4px 18px 18px;
    background: var(--exf-soft);
}
.exf-topic-results .hjopt-card-faq__item {
    padding-top: 16px;
}
.exf-topic-results .hjopt-card-faq__item + .hjopt-card-faq__item {
    margin-top: 16px;
    border-top: 1px solid var(--exf-line);
}
.exf-topic-results .hjopt-card-faq__item > h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.4;
}
.exf-topic-results .hjopt-card-faq__item > p {
    margin: 0;
    color: var(--exf-muted);
    font-size: 13px;
    line-height: 1.8;
}
.exf-topic-results .hjopt-card-faq__more {
    display: inline-block;
    margin-top: 16px;
    font-size: 12px;
}
.exf-topic-results .exf-collection-empty {
    padding: 28px 0;
    border-top: 1px solid var(--exf-line);
    color: var(--exf-muted);
    overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
    .kg-topic-tags > .hjopt-wrap.hjopt-tags {
        width: calc(100% - 44px);
    }
}
@media (max-width: 760px) {
    .exf-topic-results .hjpt-blog-news {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 24px;
        padding-block: 25px;
    }
    .exf-topic-results .hjpt-blog-news > a {
        width: 140px;
        height: 140px;
    }
    .exf-topic-results .hjpt-blog-news > a > img {
        max-height: 140px;
    }
    .exf-topic-results .hjpt-news-ids {
        font-size: 23px;
    }
}
@media (max-width: 560px) {
    .kg-topic-tags {
        padding-top: 16px;
    }
    .kg-topic-tags > .hjopt-wrap.hjopt-tags {
        width: calc(100% - 36px);
        gap: 7px;
    }
    .kg-topic-tags .hjopt-filterBtn {
        padding: 5px 11px;
    }
    .kg-topic-tags + .hjopt-section {
        padding-top: 28px;
    }
    .exf-topic-results .hjpt-blog-news {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .exf-topic-results .hjpt-blog-news > a {
        width: 100%;
        height: 140px;
    }
    .exf-topic-results .hjpt-news-ids {
        font-size: 22px;
    }
    .exf-topic-results .hjpt-gathering-text > p {
        font-size: 14px;
        line-height: 1.75;
    }
}
