/* ── Discovery Center — scoped styles (Relay 05) ───────────────────────────
   Uses only existing design tokens from style.css:
   --navy, --teal, --accent, --gray-*, --white, --border, --shadow-*, --radius*
   New classes: .discovery-center, .discovery-column, .discovery-progress,
                .discovery-ledger, .discovery-ledger__row,
                .discovery-chip--submitted, .discovery-chip--reviewed,
                .discovery-chip--released, .discovery-chip--rejected,
                .discovery-missing-checklist
   ─────────────────────────────────────────────────────────────────────────── */

/* Page wrapper */
.discovery-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .discovery-center {
        grid-template-columns: 1fr;
    }
}

/* Per-party column */
.discovery-column {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.discovery-column__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--navy);
    padding-bottom: 0.5rem;
}

.discovery-column__title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Progress bar */
.discovery-progress {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.discovery-progress__label {
    font-size: 0.75rem;
    color: var(--gray-700);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.discovery-progress__bar-track {
    background: var(--gray-200);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.discovery-progress__bar-fill {
    background: var(--teal);
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.discovery-progress__pct {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Missing checklist */
.discovery-missing-checklist {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
}

.discovery-missing-checklist__heading {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.discovery-missing-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.discovery-missing-checklist li {
    font-size: 0.825rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.discovery-missing-checklist li.satisfied {
    color: var(--teal);
}

.discovery-missing-checklist li.satisfied::before {
    content: "✓";
    font-weight: 700;
    color: var(--teal);
}

.discovery-missing-checklist li.missing::before {
    content: "○";
    color: var(--gray-500);
}

/* Upload form */
.discovery-upload-form {
    background: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
}

.discovery-upload-form__label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    display: block;
}

.discovery-upload-form .form-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.discovery-upload-form select,
.discovery-upload-form input[type="file"] {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-900);
}

.discovery-upload-form .btn-upload {
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.discovery-upload-form .btn-upload:hover {
    background: var(--navy-dark);
}

.discovery-upload-form.disabled {
    opacity: 0.55;
    pointer-events: none;
}

/* Ledger table */
.discovery-ledger {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.discovery-ledger thead th {
    font-family: var(--font);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-700);
    border-bottom: 1.5px solid var(--navy);
    padding: 0.3rem 0.4rem;
    text-align: left;
    white-space: nowrap;
}

.discovery-ledger tbody td {
    padding: 0.35rem 0.4rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
    color: var(--gray-900);
}

.discovery-ledger .discovery-ledger__row:hover td {
    background: var(--gray-50);
}

.discovery-ledger .amount-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.discovery-ledger .empty-state {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    padding: 1rem;
    font-family: var(--font);
}

/* Status chips */
.discovery-chip {
    display: inline-block;
    font-family: var(--font);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    text-transform: uppercase;
    white-space: nowrap;
}

.discovery-chip--submitted {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid #bee3f8;
}

.discovery-chip--reviewed {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid #fbd38d;
}

.discovery-chip--released {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #9ae6b4;
}

.discovery-chip--rejected {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #feb2b2;
}

.discovery-chip--none {
    background: var(--gray-100);
    color: var(--gray-500);
    border: 1px solid var(--border);
}

/* Summary bar */
.discovery-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.discovery-summary-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.discovery-summary-bar__value {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.discovery-summary-bar__label {
    font-size: 0.68rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
