/* =============================================
   Westminster Brief — Stakeholder Directory CSS
   ============================================= */

/* --- Source type badges --- */
.badge-st {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.badge-st-blue   { background: #e8edf4; color: #4a7fa5; }
.badge-st-purple { background: #e8edf4; color: #4a7fa5; }
.badge-st-teal   { background: #e8edf4; color: #4a7fa5; }
.badge-st-orange { background: #f1f4f8; color: #5a7a9a; }
.badge-st-grey   { background: #f1f5f9; color: #64748b; }


/* --- Directory index stats row --- */
.dir-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.dir-stat-card {
    flex: 1;
    min-width: 140px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    text-align: center;
}

.dir-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #1a4a6e;
    line-height: 1.1;
}

.dir-stat-label {
    font-size: 12.5px;
    color: #888;
    margin-top: 3px;
}

/* --- Directory index source table --- */
.dir-source-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.dir-source-table th {
    text-align: left;
    color: #888;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 8px 8px;
    border-bottom: 1px solid #e2e8f0;
}

.dir-source-table td {
    padding: 8px 8px;
    border-bottom: 1px solid #f1f5f9;
    color: #444;
}

.dir-source-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- Pagination --- */
.dir-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

/* --- Engagement rows (org detail) --- */
.dir-engagement-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 9px 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #eef0f4;
    font-size: 13.5px;
}

.dir-engagement-date {
    flex-shrink: 0;
    width: 90px;
    color: #888;
    font-size: 12.5px;
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
}

.dir-engagement-body {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.dir-engagement-detail {
    font-size: 13px;
    color: #555;
}

.dir-engagement-subject {
    font-size: 12px;
    color: #666;
    font-style: italic;
    flex-basis: 100%;
    padding-top: 2px;
}

.dir-source-link {
    font-size: 12px;
    color: #005a8f;
    text-decoration: none;
    font-weight: 600;
}

.dir-source-link:hover { text-decoration: underline; }

/* --- Source summary cards (org detail header) --- */
.dir-source-summary-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 7px 12px;
}

.dir-source-summary-count {
    font-size: 18px;
    font-weight: 700;
    color: #1a4a6e;
}

/* --- Org result card (search results) --- */
.dir-org-card {
    margin-bottom: 10px;
}

.dir-org-card .result-card-header {
    padding: 12px 16px 10px;
}

.dir-org-name {
    font-weight: 700;
    font-size: 15px;
    color: #1a4a6e;
    text-decoration: none;
}

.dir-org-name:hover { text-decoration: underline; }

.dir-exact-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.dir-eng-count {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

/* --- Org type / status / scope badges (org detail header) --- */
.dir-type-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 10px;
}

.dir-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 10px;
}

.dir-status-active     { background: #dcfce7; color: #166534; }
.dir-status-historical { background: #f1f5f9; color: #64748b; }

.dir-scope-badge {
    display: inline-block;
    background: #fef9c3;
    color: #854d0e;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 10px;
}

/* --- Inquiry status badges --- */
.badge-inquiry {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
    margin-left: 4px;
}

.badge-inquiry-open     { background: #dcfce7; color: #166534; }
.badge-inquiry-closed   { background: #f1f5f9; color: #64748b; }
.badge-inquiry-reported { background: #dbeafe; color: #1e40af; }

/* --- Alias chips (org detail header) --- */
.dir-alias-chip {
    display: inline-block;
    background: #f0f7ff;
    color: #005a8f;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid #b3d4f0;
}
