/* RLTV Case Footer — Article Panel Styles */

/* ── Panel container ──────────────────────────────────────────── */
.rltv-cf-panel {
    margin: 40px 0 0;
    border: 1px solid #d1d9e6;
    border-top: 3px solid #1a2744;
    border-radius: 0 0 8px 8px;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
}

/* ── Header / toggle ──────────────────────────────────────────── */
.rltv-cf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    background: #1a2744;
    border: none;
    cursor: pointer;
    text-align: left;
    border-radius: 0;
    transition: background 0.15s;
    gap: 12px;
}

.rltv-cf-header:hover { background: #253357; }

.rltv-cf-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rltv-cf-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rltv-cf-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}

.rltv-cf-chevron {
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.rltv-cf-panel--collapsed .rltv-cf-chevron {
    transform: rotate(-90deg);
}

/* ── Body ─────────────────────────────────────────────────────── */
.rltv-cf-body {
    padding: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.rltv-cf-panel--collapsed .rltv-cf-body {
    display: none;
}

.rltv-cf-cases {
    padding: 0;
}

/* ── Individual case block ────────────────────────────────────── */
.rltv-cf-case {
    padding: 18px 20px;
    border-bottom: 1px solid #eef1f7;
}

.rltv-cf-case:last-child {
    border-bottom: none;
}

/* ── Case header row ──────────────────────────────────────────── */
.rltv-cf-case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.rltv-cf-case-title-group {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.rltv-cf-case-name {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a2744;
    text-decoration: none;
    line-height: 1.3;
}

.rltv-cf-case-name:hover { color: #c0392b; }

.rltv-cf-case-citation {
    font-size: 0.8rem;
    color: #64748b;
    font-style: italic;
    white-space: nowrap;
}

.rltv-cf-case-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
}

/* ── Court / topics row ───────────────────────────────────────── */
.rltv-cf-case-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.78rem;
}

.rltv-cf-meta-court {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 8px;
}

.rltv-cf-topic-pill {
    display: inline-block;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1e40af;
}

/* ── Holding ──────────────────────────────────────────────────── */
.rltv-cf-holding {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 10px;
    padding: 8px 12px;
    background: #fafafa;
    border-left: 3px solid #c9a84c;
    border-radius: 0 4px 4px 0;
}

.rltv-cf-holding-label {
    font-weight: 700;
    color: #334155;
    margin-right: 4px;
}

/* ── Document links ───────────────────────────────────────────── */
.rltv-cf-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.rltv-cf-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    transition: all 0.15s;
    white-space: nowrap;
}

.rltv-cf-doc-link:hover {
    background: #1a2744;
    border-color: #1a2744;
    color: #fff;
}

.rltv-cf-doc-link--primary {
    background: #1a2744;
    border-color: #1a2744;
    color: #fff;
}

.rltv-cf-doc-link--primary:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.rltv-cf-doc-link--profile {
    border-color: #c9a84c;
    color: #92400e;
    background: #fff8e7;
}

.rltv-cf-doc-link--profile:hover {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #fff;
}

/* ── Relationship badges ──────────────────────────────────────── */
.rltv-cf-rel-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: default;
}

.rltv-cf-rel-primary  { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
.rltv-cf-rel-context  { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.rltv-cf-rel-mentioned{ background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.rltv-cf-rel-unknown  { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }

/* ── Outcome badge ────────────────────────────────────────────── */
.rltv-cf-outcome-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Other articles section ───────────────────────────────────── */
.rltv-cf-other-articles {
    margin-top: 4px;
}

.rltv-cf-other-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px 0;
    font-size: 0.82rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.15s;
}

.rltv-cf-other-toggle:hover { color: #1a2744; }

.rltv-cf-other-toggle strong { color: #1a2744; }

.rltv-cf-toggle-icon {
    transition: transform 0.18s ease;
    flex-shrink: 0;
}

.rltv-cf-other-toggle[aria-expanded="true"] .rltv-cf-toggle-icon {
    transform: rotate(90deg);
}

.rltv-cf-other-list {
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.rltv-cf-other-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rltv-cf-other-item:last-child { border-bottom: none; }

.rltv-cf-other-item:nth-child(even) { background: #fafcff; }

.rltv-cf-other-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.rltv-cf-other-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a2744;
    text-decoration: none;
    line-height: 1.4;
    flex: 1;
}

.rltv-cf-other-title:hover { color: #c0392b; }

.rltv-cf-other-date {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}

.rltv-cf-other-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rltv-cf-other-doclink {
    font-size: 0.75rem;
    color: #64748b;
    text-decoration: none;
}

.rltv-cf-other-doclink:hover { color: #c0392b; }

.rltv-cf-see-all {
    display: block;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a2744;
    text-decoration: none;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.rltv-cf-see-all:hover { background: #1a2744; color: #fff; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .rltv-cf-case-header   { flex-direction: column; gap: 8px; }
    .rltv-cf-case-badges   { width: 100%; }
    .rltv-cf-other-main    { flex-direction: column; gap: 2px; }
    .rltv-cf-doc-link      { font-size: 0.72rem; padding: 3px 9px; }
}
