/* ============================================================================
   evidence-tier.css -- widget #13 (honest four-tier evidence block)

   structure (cards, text, borders) uses library theme tokens. the per-level
   accent color (solid/moderate/weak/missing) is the one allowed exception: the
   color encodes the evidence level itself (data-encoding), mirroring the
   canonical ghk-cu evidence grid. fixed semantic palette:
     solid   = green   moderate = amber   weak = red   missing = gray
   ============================================================================ */

.cw-evidence-tier {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--cw-gap, 12px);
}

.cw-et-tier {
    padding: 16px 16px 14px;
    border-radius: var(--cw-radius, 14px);
    background: var(--cw-surface);
    border: 1px solid var(--cw-border);
    border-left-width: 4px;
}

.cw-et-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 9px;
}

.cw-et-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
}

.cw-et-headline {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cw-text);
}

.cw-et-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--cw-muted);
}

.cw-et-claims {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cw-et-claims li {
    position: relative;
    padding-left: 16px;
    font-size: 0.83rem;
    line-height: 1.5;
    color: var(--cw-muted);
}

.cw-et-claims li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 4px;
    background: currentColor;
    opacity: 0.5;
}

/* --- fixed semantic level palette (data-encoding) ------------------------ */

/* solid -- green */
.cw-et-tier--solid { border-left-color: #10b981; }
.cw-et-pill--solid {
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.32);
}

/* moderate -- amber */
.cw-et-tier--moderate { border-left-color: #f59e0b; }
.cw-et-pill--moderate {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.32);
}

/* weak -- red */
.cw-et-tier--weak { border-left-color: #ef4444; }
.cw-et-pill--weak {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.32);
}

/* missing -- gray */
.cw-et-tier--missing { border-left-color: #9ca3af; }
.cw-et-pill--missing {
    background: rgba(156, 163, 175, 0.16);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

[data-theme="light"] .cw-et-pill--solid { color: #047852; }
[data-theme="light"] .cw-et-pill--moderate { color: #b45309; }
[data-theme="light"] .cw-et-pill--weak { color: #b91c1c; }
[data-theme="light"] .cw-et-pill--missing { color: #6b7280; }
