/* IQAI Advanced Intelligence — Deliberation Residue
   Makes revision history and unresolved contribution visible without collapsing
   independent model paths into decorative motion. */

.iq-deliberation-residue{
  margin:22px 0 4px;
  border-top:1px solid #222;
  border-bottom:1px solid #ddd;
}

.iq-deliberation-residue-head{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:baseline;
  padding:12px 0 10px;
}

.iq-deliberation-residue-head strong{
  font-size:10px;
  font-weight:500;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:#222;
}

.iq-deliberation-residue-head span{
  font-size:11px;
  color:#666;
}

.iq-residue-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid #e1e1e1;
}

.iq-residue-item{
  appearance:none;
  border:0;
  background:transparent;
  min-height:118px;
  padding:15px 16px 17px 0;
  text-align:left;
  cursor:pointer;
  color:#444;
  position:relative;
  transition:opacity 160ms ease,background 160ms ease;
}

.iq-residue-item + .iq-residue-item{
  border-left:1px solid #e8e8e8;
  padding-left:16px;
}

.iq-residue-item small{
  display:block;
  margin-bottom:18px;
  font-size:9px;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:#777;
}

.iq-residue-item strong{
  display:block;
  margin-bottom:7px;
  font-size:13px;
  font-weight:500;
  color:#222;
}

.iq-residue-item span{
  display:block;
  font-size:11.5px;
  line-height:1.45;
  color:#666;
}

.iq-residue-item::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background:#111;
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform 220ms cubic-bezier(.22,1,.36,1);
}

.iq-residue-item:hover::after,
.iq-residue-item:focus-visible::after,
.iq-residue-item[aria-pressed="true"]::after{
  transform:scaleX(1);
}

.iq-residue-item:focus-visible{
  outline:1px solid #111;
  outline-offset:-1px;
}

.iq-residue-grid.iq-residue-inspecting .iq-residue-item{
  opacity:.3;
}

.iq-residue-grid.iq-residue-inspecting .iq-residue-item[aria-pressed="true"]{
  opacity:1;
}

.iq-page-intelligence #interactive-example.iq-residue-inspecting svg > *{
  transition:opacity 160ms ease;
  opacity:.16;
}

.iq-page-intelligence #interactive-example.iq-residue-inspecting svg .iq-residue-svg-active,
.iq-page-intelligence #interactive-example.iq-residue-inspecting svg .iq-residue-svg-active *{
  opacity:1!important;
}

.iq-residue-caption{
  min-height:50px;
  padding:12px 0 14px;
  border-top:1px solid #e5e5e5;
  font-size:12px;
  line-height:1.55;
  color:#555;
}

.iq-residue-caption strong{
  color:#222;
  font-weight:500;
}

@media(max-width:760px){
  .iq-residue-grid{grid-template-columns:1fr 1fr}
  .iq-residue-item:nth-child(3){border-left:0;padding-left:0;border-top:1px solid #e8e8e8}
  .iq-residue-item:nth-child(4){border-top:1px solid #e8e8e8}
}

@media(prefers-reduced-motion:reduce){
  .iq-residue-item,
  .iq-residue-item::after,
  .iq-page-intelligence #interactive-example.iq-residue-inspecting svg > *{
    transition:none!important;
  }
}
