/* V5-only finishing layer: status in the upper-right action rail and a
   softly fading preview of real detail content. V1–V4 remain unchanged. */
/* The bookmarks and programme controls already occupy the top-right corner.
   Relocate the real review badge directly beneath them, not into the four-row
   overview. It keeps its verified/pending wording and semantic colors. */
body[data-design-edition="v5"] #results>.result .review-badge{
  position:absolute!important;
  top:97px;
  right:12px;
  left:auto;
  width:76px;
  max-width:76px;
  height:auto!important;
  min-height:0!important;
  padding:4px 5px!important;
  margin:0!important;
  display:block!important;
  flex:none!important;
  align-self:auto!important;
  text-align:center;
  white-space:normal!important;
  overflow-wrap:normal;
  border-radius:10px;
  font-size:10px!important;
  line-height:1.25;
  font-weight:600;
  box-shadow:none;
}
/* The disclosure reads as a continuation of the list, not a detached button.
   Retain its existing click handler and keyboard semantics. */
body[data-design-edition="v5"] #results>.result .result-toggle-row{
  margin-top:0;
}
body[data-design-edition="v5"] #results>.result .result-toggle-row .result-details-toggle{
  gap:8px;
  min-height:40px!important;
  padding:5px 0!important;
  transition:color .18s ease;
}
body[data-design-edition="v5"] #results>.result .result-toggle-row .result-details-toggle::before{
  content:"+";
  display:grid;
  place-items:center;
  width:23px;
  height:23px;
  flex:none;
  border:1px solid #e7d5ec;
  border-radius:50%;
  background:linear-gradient(135deg,#f9eef9,#fbf4fc);
  color:#754285;
  font-size:17px;
  font-weight:400;
  line-height:1;
}
body[data-design-edition="v5"] #results>.result .result-toggle-row .result-details-toggle[aria-expanded="true"]::before{
  content:"−";
}
body[data-design-edition="v5"] #results>.result .result-toggle-row .result-details-toggle:hover{
  color:#442051!important;
}
/* The real content is still hidden until activated. Once shown it gently
   unfolds instead of appearing abruptly. Reduced-motion preference wins. */
body[data-design-edition="v5"] #results>.result .result-details-content:not([hidden]){
  animation:v5-detail-unfold .30s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes v5-detail-unfold{
  from{opacity:0;transform:translateY(-7px);clip-path:inset(0 0 10% 0)}
  to{opacity:1;transform:translateY(0);clip-path:inset(0 0 0 0)}
}
@media(max-width:700px){
  body[data-design-edition="v5"] #results>.result .review-badge{
    top:79px;
    right:8px;
    width:68px;
    max-width:68px;
    padding:4px 3px!important;
    font-size:9px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-design-edition="v5"] #results>.result .result-details-content:not([hidden]){animation:none}
  body[data-design-edition="v5"] #results>.result .result-toggle-row .result-details-toggle{transition:none}
}

/* Current disclosure layout: no preview strip, no closed-state overlap, no reserved right padding. */
body[data-design-edition="v5"] #results>.result .result-details-content{
  border-top:0;
  margin-top:0;
  padding-top:0;
}
body[data-design-edition="v5"] #results>.result .result-toggle-row{
  margin-top:6px;
}
body[data-design-edition="v5"] #results>.result .result-toggle-row:has(.result-details-toggle[aria-expanded="true"]){
  margin-top:2px;
}
body[data-design-edition="v5"] #results>.result .result-details-content .row-actions{
  margin-top:7px;
  gap:6px;
}
body[data-design-edition="v5"] #results>.result .result-details-content .row-actions button{
  min-height:32px;
  height:auto;
  padding:6px 10px;
  border-radius:8px;
  font-size:12px;
  line-height:1.25;
  font-weight:600;
}
