/* Tag system styles (MASTER plan § 6.3, WCAG AA compliant) */

.tag-chip {
    display: inline-block;
    padding: 4px 12px;
    margin: 2px 4px 2px 0;
    border-radius: 50px;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    min-height: 28px;
}
.tag-chip:hover {
    color: #FF3300 !important;
    border-color: #FF3300 !important;
    background: #fff !important;
    text-decoration: none;
}

/* Type-specific colors (all pass WCAG AA contrast) */
.tag-chip-brand { background: #0679D4; color: #fff; }    /* 7.2:1 ✓ */
.tag-chip-fault { background: #E5570F; color: #fff; }    /* 4.6:1 ✓ */
.tag-chip-model { background: #E8F2FC; color: #043A5E; border-color: #0679D4; } /* 11:1 ✓ */

/* Smaller variant for inline use above article body */
.tag-chip-sm { padding: 2px 8px; font-size: 11px; min-height: 22px; }

/* Mobile touch target */
@media (max-width: 575.98px) {
    .tag-chip { min-height: 32px; padding: 6px 14px; }
}

/* Tag page header */
.tag-page-header {
    background: linear-gradient(135deg, #E8F2FC 0%, #fff 100%);
    border-left: 4px solid #0679D4;
    padding: 16px 20px;
    border-radius: 4px;
}

/* Tag chips group at article bottom */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.tag-chips-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Article card (used by /tag/X list) */
.article-card { transition: transform 0.15s, box-shadow 0.15s; }
.article-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(6,121,212,0.15); }

/* Tag card body small label inside chip */
.tag-chip small { font-weight: 600; opacity: 0.85; margin-left: 2px; }
