.sg-topics {
    min-width: 0;
    padding-bottom: 6rem;
    padding-top: clamp(3rem, 7vw, 7rem);
}

.sg-topics-header {
    max-width: 760px;
    min-width: 0;
}

.sg-topics-header h1,
.sg-topics-header p,
.sg-category-card h2,
.sg-category-card p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sg-topics-eyebrow {
    color: var(--ghost-accent-color);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin: 0 0 .8rem;
    text-transform: uppercase;
}

.sg-category-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 3.5rem;
    min-width: 0;
    width: 100%;
}

.sg-category-card {
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 14px;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 190px;
    min-width: 0;
    padding: 2.2rem;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sg-category-card:hover {
    border-color: var(--ghost-accent-color);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.sg-category-card h2 {
    font-size: 2rem;
    line-height: 1.35;
    margin: 0 0 .8rem;
}

.sg-category-card p {
    color: #64707d;
    flex: 1;
    font-size: 1.45rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.sg-category-card span {
    color: var(--ghost-accent-color);
    font-size: 1.35rem;
    font-weight: 700;
}

.sg-keywords {
    border-top: 1px solid rgba(0, 0, 0, .12);
    margin-top: 5rem;
    padding-top: 3rem;
}

.sg-keywords h2 {
    font-size: 2.4rem;
    margin: 0 0 1.8rem;
}

.sg-keyword-list,
.sg-post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.sg-keyword-list a,
.sg-post-tags-list a {
    background: rgba(0, 0, 0, .055);
    border-radius: 999px;
    color: inherit;
    font-size: 1.35rem;
    line-height: 1.35;
    padding: .7rem 1rem;
    text-decoration: none;
}

.sg-keyword-list a:hover,
.sg-post-tags-list a:hover {
    background: var(--ghost-accent-color);
    color: #fff;
}

.sg-keyword-list a[href$="/tag/gpu-server-hardware/"],
.sg-keyword-list a[href$="/tag/hpc-scientific-computing/"],
.sg-keyword-list a[href$="/tag/ai-local-llm/"],
.sg-keyword-list a[href$="/tag/deployment-operations/"],
.sg-keyword-list a[href$="/tag/benchmarks-validation/"],
.sg-keyword-list a[href$="/tag/research-notes/"] {
    display: none;
}

.sg-keyword-list span {
    color: #6a7480;
    font-size: .9em;
    margin-left: .25rem;
}

.sg-post-tags {
    border-top: 1px solid rgba(0, 0, 0, .12);
    margin-top: 4rem;
    padding-top: 2rem;
}

.sg-post-tags-label {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sg-view-count[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .sg-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .sg-category-grid {
        grid-template-columns: 1fr;
    }

    .sg-category-card {
        min-height: 0;
    }
}
