/* Detail-page tags: compact, wrapping links with explicit theme and focus states. */
.soft-detail .article-body:has(+ .article-tags) { padding-bottom: 4px; }
.soft-detail .article-tags {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 12px;
    padding: 0 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.soft-detail .article-tags::before,
.soft-detail .article-tags::after { display: none; }
.soft-detail .article-tags-label {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    min-height: 34px;
    color: #758297;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
}
.soft-detail .article-tags-label svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.soft-detail .article-tags-list {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}
.soft-detail .article-tags a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    float: none;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #e3e9f2;
    border-radius: 999px;
    background: #f5f7fb;
    color: #4b5b74;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.soft-detail .article-tag-hash { color: #89a1c2; font-weight: 600; }
.soft-detail .article-tag-text { min-width: 0; overflow-wrap: anywhere; }
.soft-detail .article-tags a:focus-visible {
    outline: 2px solid #4b82de;
    outline-offset: 3px;
}
.soft-detail .article-tags a:active {
    border-color: #bdd3f8;
    background: #eaf2ff;
    color: #285fb2;
}
body.night .soft-detail .article-tags { border-color: #3a414c; background: transparent; }
body.night .soft-detail .article-tags-label { color: #97a5b8; }
body.night .soft-detail .article-tags a {
    border-color: #3a4658;
    background: #252e3b;
    color: #c1cfdf;
}
body.night .soft-detail .article-tag-hash { color: #7d9cc9; }
body.night .soft-detail .article-tags a:focus-visible { outline-color: #8cb7fa; }
body.night .soft-detail .article-tags a:active {
    border-color: #526f99;
    background: #2c3e58;
    color: #d4e4fd;
}
@media (hover: hover) {
    .soft-detail .article-tags a:hover {
        border-color: #bdd3f8;
        background: #eef5ff;
        color: #285fb2;
        box-shadow: 0 3px 10px -5px rgba(59, 106, 179, .25);
    }
    body.night .soft-detail .article-tags a:hover {
        border-color: #526f99;
        background: #2c3e58;
        color: #d4e4fd;
        box-shadow: none;
    }
}
@media (max-width: 800px) {
    .soft-detail .article-tags { flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 0; }
    .soft-detail .article-tags-label { min-height: 20px; }
    .soft-detail .article-tags-list { width: 100%; }
    .soft-detail .article-tags a { min-height: 36px; padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .soft-detail .article-tags a { transition: none; }
}
