/* ── FRA Tracker page ──────────────────────────────────────────────── */

.fra-hero {
    background: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 100%);
    padding: 3rem 0 2rem;
    color: #CBD5E1;
}
.fra-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: #F1F5F9;
    margin: 0 0 0.5rem;
}
.fra-hero p { color: #94A3B8; font-size: var(--t-sm); max-width: 700px; margin: 0; line-height: 1.6; }
.fra-monitor-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 1.25rem; padding: 0.65rem 1.25rem;
    border: 1px solid #34D399; border-radius: 8px;
    color: #34D399; font-family: 'Inter', sans-serif;
    font-size: var(--t-sm); font-weight: 600;
    text-decoration: none; transition: background 0.2s, color 0.2s;
}
.fra-monitor-link:hover { background: #34D399; color: #0A0E27; }
.fra-monitor-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Pipeline ─────────────────────────────────────────── */
.fra-section { background: #0A0E27; padding: 2rem 0; color: #CBD5E1; }
.fra-section-alt { background: #0d1230; }
.fra-section h2 {
    font-family: 'Inter', sans-serif; font-size: var(--t-lg); font-weight: 700;
    color: #F1F5F9; margin: 0 0 1.5rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pipeline {
    display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 2rem;
}
.pipeline-stage {
    flex: 1 1 140px; padding: 1rem; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    text-align: center;
}
.pipeline-stage .count {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem; font-weight: 700; color: #34D399;
    display: block;
}
.pipeline-stage .label {
    font-family: 'Inter', sans-serif; font-size: var(--t-xs);
    text-transform: uppercase; letter-spacing: 0.08em;
    color: #94A3B8; margin-top: 0.25rem; display: block;
}
.pipeline-total {
    text-align: center; font-size: var(--t-sm); color: #64748B;
    margin-bottom: 1.5rem;
}

/* ── Bills table ──────────────────────────────────────── */
.bills-table-wrap { overflow-x: auto; margin: 0 0 2rem; }
.bills-table {
    width: 100%; border-collapse: collapse;
    font-family: 'Inter', sans-serif; font-size: var(--t-sm);
}
.bills-table th {
    text-align: left; padding: 0.6rem 0.75rem;
    font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.08em;
    color: #64748B; border-bottom: 2px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}
.bills-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: #CBD5E1; vertical-align: top;
}
.bills-table tr:hover td { background: rgba(255,255,255,0.02); }
.bills-table .bill-ref {
    font-weight: 700; color: #F1F5F9; white-space: nowrap;
}
.stage-badge {
    display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px;
    font-size: var(--t-xs); font-weight: 600;
}
.stage-first { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3); color: #60A5FA; }
.stage-second { background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.3); color: #C084FC; }
.stage-committee { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #FBBF24; }
.stage-report { background: rgba(236,72,153,0.15); border: 1px solid rgba(236,72,153,0.3); color: #F472B6; }
.stage-third { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #34D399; }
.stage-awaiting-assent { background: rgba(234,179,8,0.15); border: 1px solid rgba(234,179,8,0.3); color: #FACC15; }
.stage-assent { background: rgba(16,185,129,0.25); border: 1px solid rgba(16,185,129,0.5); color: #6EE7B7; }
.stage-hint { display: block; font-weight: 400; font-size: 0.75em; opacity: 0.8; margin-top: 0.1rem; }
.bill-summary { font-size: var(--t-xs); color: #94A3B8; margin-top: 0.25rem; max-width: 400px; }

/* ── Bill detail toggle ───────────────────────────────── */
.bill-detail-row td { padding: 0; }
.bill-detail-content {
    padding: 1rem 0.75rem 1.25rem; background: rgba(255,255,255,0.02);
}
.bill-detail-content h4 {
    font-size: var(--t-sm); font-weight: 700; color: #F1F5F9;
    margin: 0.75rem 0 0.4rem;
}
.bill-detail-content h4:first-child { margin-top: 0; }
.bill-detail-content p { font-size: var(--t-sm); color: #CBD5E1; line-height: 1.6; margin: 0; }
.provision-list { list-style: none; padding: 0; margin: 0; }
.provision-list li {
    padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: var(--t-sm);
}
.provision-list li:last-child { border-bottom: none; }
.provision-name { font-weight: 600; color: #F1F5F9; }
.provision-desc { color: #94A3B8; }
.provision-section { color: #64748B; font-size: var(--t-xs); }

/* ── Timeline ─────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: ''; position: absolute; left: 7px; top: 0; bottom: 0;
    width: 2px; background: rgba(255,255,255,0.08);
}
.timeline-item { position: relative; padding: 0 0 1.5rem; }
.timeline-item::before {
    content: ''; position: absolute; left: -2rem; top: 0.35rem;
    width: 10px; height: 10px; border-radius: 50%;
    background: #34D399; border: 2px solid #0A0E27;
    z-index: 1;
}
.timeline-year {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: var(--t-md); color: #F1F5F9; font-weight: 700;
}
.timeline-title { font-size: var(--t-sm); color: #CBD5E1; margin: 0.2rem 0; }
.timeline-desc { font-size: var(--t-xs); color: #94A3B8; line-height: 1.5; }
.timeline-category {
    display: inline-block; padding: 0.1rem 0.4rem; border-radius: 4px;
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; margin-left: 0.5rem;
    background: rgba(255,255,255,0.06); color: #94A3B8;
}

/* ── Court cases ──────────────────────────────────────── */
.case-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.case-card {
    padding: 1.25rem; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.case-card h3 {
    font-family: 'Inter', sans-serif; font-size: var(--t-sm);
    font-weight: 700; color: #F1F5F9; margin: 0 0 0.5rem;
}
.case-ref { font-size: var(--t-xs); color: #64748B; margin-bottom: 0.5rem; }
.case-summary { font-size: var(--t-sm); color: #94A3B8; line-height: 1.5; }
.case-status {
    display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px;
    font-size: var(--t-xs); font-weight: 600; margin-top: 0.5rem;
}
.status-pending { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #FBBF24; }
.status-decided { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #34D399; }
.status-won { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3); color: #60A5FA; }
.status-appealed { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #F87171; }

.fra-empty { color: #64748B; font-size: var(--t-sm); padding: 1rem 0; }

@media (max-width: 600px) {
    .pipeline { gap: 0.5rem; }
    .pipeline-stage { flex: 1 1 100px; }
}
