/* ============================================================================
   course-widgets/regulatory-map.css -- widget #28

   a clean jurisdiction status grid on the item-grid scaffold: a card per
   jurisdiction with a name and a color-coded status pill, click->detail. the
   status pill is the one place color encodes meaning (legal status), so the four
   statuses use fixed semantic hues; everything else is theme-token styled.
   ============================================================================ */

.cw-rm .cw-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.cw-rm-name {
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--cw-text);
}

.cw-rm-pill {
    align-self: flex-start;
    max-width: 100%;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    line-height: 1.3;
}

/* status colors -- legal meaning, the allowed exception to token-only color */
.cw-rm-status--approved   { background: rgba(16, 185, 129, 0.16); color: #34d399; border-color: rgba(16, 185, 129, 0.45); }
.cw-rm-status--restricted { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border-color: rgba(245, 158, 11, 0.45); }
.cw-rm-status--banned     { background: rgba(239, 68, 68, 0.16);  color: #f87171; border-color: rgba(239, 68, 68, 0.45); }
.cw-rm-status--unapproved { background: rgba(148, 163, 184, 0.14); color: var(--cw-muted); border-color: var(--cw-border); }

[data-theme="light"] .cw-rm-status--approved   { color: #047852; }
[data-theme="light"] .cw-rm-status--restricted { color: #b45309; }
[data-theme="light"] .cw-rm-status--banned     { color: #b91c1c; }

.cw-rm-detail-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.cw-rm-detail-head .cw-detail-head { margin-bottom: 0; }
