/* ==========================================================
   THE POLITICAL RIFT — JUDICIAL BENCH INDEX (LOCKED CSS v0.5.1)
   Scope: .rj-index ONLY
   Fortune-500 Dashboard Layout (Shutdown Index aesthetic)
========================================================== */

.rj-index{
  --rift-accent:#ff6f00;
  --rift-bg:#fdf6e3;
  --rift-text:#333333;
  --rift-muted:rgba(51,51,51,.62);

  --rift-card:rgba(255,255,255,.62);
  --rift-border:rgba(0,0,0,.07);
  --rift-shadow:0 14px 40px rgba(0,0,0,.08);

  --rift-radius-lg:18px;
  --rift-radius-md:14px;
  --rift-radius-sm:12px;
}

.rj-index,
.rj-index *{ box-sizing:border-box; }

.rj-index{ color:var(--rift-text); }

.rj-index .rj-shell{
  max-width:1180px;
  margin:14px auto 0;
  padding:0 14px 18px;
}

.rj-index .rj-meta{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin:10px 0 10px;
  flex-wrap:wrap;
}

.rj-index .rj-meta__item{
  font-size:12px;
  opacity:.78;
}

.rj-index .rj-meta__k{ font-weight:800; }
.rj-index .rj-meta__v{ font-weight:950; opacity:.9; }

.rj-index .rj-meta__right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.rj-index .rj-updated{
  font-size:11px;
  opacity:.62;
  white-space:nowrap;
}

.rj-index .rj-card{
  background:var(--rift-card);
  border:1px solid var(--rift-border);
  border-radius:var(--rift-radius-lg);
  padding:16px;
  box-shadow:var(--rift-shadow);
  backdrop-filter:saturate(120%) blur(3px);
}

.rj-index .rj-h2{
  font-size:16px;
  font-weight:950;
  margin:0 0 8px;
  letter-spacing:.02em;
}

.rj-index .rj-muted{ opacity:.75; }
.rj-index .rj-muted--tight{ margin-top:-2px; font-size:12px; opacity:.70; }

.rj-index .rj-card--signals{
  padding:10px;
}

.rj-index .rj-signal{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(0,0,0,.06);
  border-radius:999px;
  margin:8px 0;
}

.rj-index .rj-signal__label{
  font-size:12px;
  opacity:.68;
}

.rj-index .rj-signal__value{
  font-size:12px;
  font-weight:950;
}

/* KPI grid */
.rj-index .rj-kpi-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}

@media(max-width:860px){
  .rj-index .rj-kpi-grid{ grid-template-columns:1fr; }
}

.rj-index .rj-kpi{
  padding:18px;
}

.rj-index .rj-kpi__label{
  font-size:12px;
  opacity:.70;
  margin-bottom:8px;
}

.rj-index .rj-kpi__value{
  font-size:42px;
  font-weight:950;
  line-height:1;
  letter-spacing:-.02em;
}

/* Chips row */
.rj-index .rj-chip-row{
  margin:12px 0 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.rj-index .rj-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(255,255,255,.70);
  white-space:nowrap;
}

.rj-index .rj-chip__label{ opacity:.72; font-weight:900; }
.rj-index .rj-chip__value{ font-weight:950; }

/* Activity stage rows (FIX: numbers right aligned) */
.rj-index .rj-stage{
  margin-top:10px;
  border-radius:var(--rift-radius-md);
  overflow:hidden;
}

.rj-index .rj-stage__row{
  display:grid;
  grid-template-columns:1fr 38px;
  gap:12px;
  padding:10px 2px;
  border-bottom:1px solid rgba(0,0,0,.06);
  align-items:center;
}

.rj-index .rj-stage__row:last-child{ border-bottom:0; }

.rj-index .rj-stage__label{
  font-weight:900;
  opacity:.9;
}

.rj-index .rj-stage__value{
  text-align:right;
  font-weight:950;
  opacity:.9;
}

/* Status pill */
.rj-index .rj-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:24px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  font-size:12px;
  font-weight:950;
  letter-spacing:.2px;
  line-height:1;
  white-space:nowrap;
  user-select:none;
  background:rgba(255,255,255,.70);
  color:var(--rift-text);
}

.rj-index .rj-pill--stable{
  background:rgba(232,244,234,.85);
}

.rj-index .rj-pill--watch{
  background:rgba(255,245,232,.90);
  color:var(--rift-accent);
  border-color:rgba(255,111,0,.22);
}

.rj-index .rj-pill--elevated{
  background:rgba(255,232,210,.92);
  color:var(--rift-accent);
  border-color:rgba(255,111,0,.28);
}

.rj-index .rj-pill--critical{
  background:rgba(255,220,220,.90);
  border-color:rgba(198,40,40,.22);
}

/* Links (if any appear) */
.rj-index a{
  color:var(--rift-accent);
  font-weight:900;
  text-decoration:none;
}
.rj-index a:hover{ text-decoration:underline; }


/* ==========================================================
   MODULE GRID (top add-ons): Pressure Signal + Seats Filled
========================================================== */
.rj-grid--top{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;
  margin:14px 0 18px;
}
@media(max-width:900px){
  .rj-grid--top{ grid-template-columns:1fr; }
}
.rj-list{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.rj-row{ display:grid; grid-template-columns:92px 1fr; gap:12px; align-items:baseline; padding:8px 0; border-bottom:1px solid rgba(0,0,0,.05); }
.rj-row:last-child{ border-bottom:0; }
.rj-row__date{ font-weight:900; opacity:.75; font-size:12px; }
.rj-row__title{ font-weight:800; line-height:1.35; }


/* Signal titles are internal links (no external destinations) */
.rj-index .rift-signal-link,
.rj-index .rift-signal-text{
  color:var(--rift-accent);
  font-weight:900;
  text-decoration:none;
}

.rj-index .rift-signal-link:hover{
  text-decoration:underline;
}

/* ==========================================================
   MODULE 4 — BENCH HEAT MAP (internal links only)
========================================================== */

.rj-card--heat .rj-card__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}

.rj-heat{
  margin-top:12px;
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:12px;
}

@media(max-width:1100px){
  .rj-heat{ grid-template-columns:repeat(3, minmax(0,1fr)); }
}
@media(max-width:700px){
  .rj-heat{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

.rj-heat__tile{
  display:block;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.62);
  box-shadow:0 14px 40px rgba(0,0,0,.06);
  text-decoration:none;
  color:inherit;
}

.rj-heat__tile:hover{
  transform:translateY(-1px);
}

.rj-heat__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.rj-heat__label{
  font-weight:950;
  font-size:12px;
  letter-spacing:.02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:78%;
}

.rj-heat__pill{
  height:22px;
  padding:0 10px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:950;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(51,51,51,.08);
}

.rj-heat__pill--watch{ background:rgba(255,111,0,.14); color:var(--rift-accent); border-color:rgba(255,111,0,.22); }
.rj-heat__pill--elevated{ background:rgba(255,111,0,.22); color:var(--rift-accent); border-color:rgba(255,111,0,.30); }
.rj-heat__pill--high{ background:rgba(255,111,0,.30); color:var(--rift-accent); border-color:rgba(255,111,0,.40); }

.rj-heat__score{
  margin-top:10px;
  font-size:26px;
  font-weight:950;
  color:var(--rift-accent);
  font-variant-numeric:tabular-nums;
}

.rj-heat__num{
  color:var(--rift-text) !important;
  font-variant-numeric:tabular-nums;
}


.rj-heat__meta{
  margin-top:6px;
  font-size:12px;
  opacity:.78;
  line-height:1.35;
}
