/* SBL-015 Revision C — CTA visibility, hierarchy and accessibility correction.
   Prototype-only. Production remains unchanged until owner approval. */

/* Shared action system: primary = unmistakable next action; secondary = visible but subordinate. */
.ux2-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px;
  min-height:50px!important;
  min-width:168px;
  padding:13px 20px!important;
  border:1px solid #ffd495!important;
  border-radius:13px!important;
  background:#ffd495!important;
  color:#101820!important;
  font-weight:900!important;
  line-height:1.15!important;
  text-decoration:none!important;
  text-shadow:none!important;
  box-shadow:0 10px 28px rgba(242,169,74,.22),0 0 0 1px rgba(255,255,255,.03)!important;
  opacity:1!important;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease!important;
}
.ux2-action:hover:not(:disabled){
  transform:translateY(-2px);
  background:#ffe4b9!important;
  border-color:#ffe4b9!important;
  box-shadow:0 15px 36px rgba(242,169,74,.28)!important;
}
.ux2-action:focus-visible{
  outline:3px solid #ffffff!important;
  outline-offset:4px!important;
  box-shadow:0 0 0 6px rgba(255,255,255,.12),0 14px 34px rgba(242,169,74,.24)!important;
}
.ux2-action.secondary,
.ux2-action.secondary:visited{
  background:#142431!important;
  color:#ffffff!important;
  border-color:#6f8493!important;
  box-shadow:0 8px 24px rgba(0,0,0,.24)!important;
  text-decoration:none!important;
}
.ux2-action.secondary:hover{
  background:#1c3140!important;
  color:#ffffff!important;
  border-color:#aebfca!important;
  box-shadow:0 12px 30px rgba(0,0,0,.30)!important;
}
.ux2-action.secondary:focus-visible{
  outline:3px solid #ffffff!important;
  outline-offset:4px!important;
  border-color:#ffffff!important;
}
.ux2-action:disabled,
.ux2-action[aria-disabled="true"]{
  opacity:.48!important;
  cursor:not-allowed!important;
  transform:none!important;
  box-shadow:none!important;
}

/* Completion states receive an intentional action zone so the next move is visually obvious. */
#debrief>.ux2-action-row,
#dossier>.ux2-action-row{
  margin-top:24px!important;
  padding:18px!important;
  gap:12px!important;
  border:1px solid rgba(255,255,255,.11);
  border-radius:16px;
  background:rgba(255,255,255,.025);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
#debrief>.ux2-action-row .ux2-action:first-child,
#dossier>.ux2-action-row .ux2-action:first-child{
  min-width:190px;
}

/* Validation Detective: explicitly beat the Rev B theme rule that previously washed out secondary CTAs. */
.det-theme .ux2-action{
  background:#dff7fc!important;
  color:#071018!important;
  border-color:#dff7fc!important;
  box-shadow:0 11px 30px rgba(126,195,211,.22)!important;
}
.det-theme .ux2-action:hover:not(:disabled){
  background:#f1fcfe!important;
  border-color:#f1fcfe!important;
  box-shadow:0 15px 38px rgba(126,195,211,.30)!important;
}
.det-theme .ux2-action.secondary,
.det-theme .ux2-action.secondary:visited{
  background:#0d2230!important;
  color:#ffffff!important;
  border-color:#87aeba!important;
  box-shadow:0 8px 24px rgba(0,0,0,.28)!important;
}
.det-theme .ux2-action.secondary:hover{
  background:#173443!important;
  color:#ffffff!important;
  border-color:#c7e2e9!important;
}
.det-theme .ux2-action:focus-visible{
  outline-color:#ffffff!important;
}

/* The transition button after an evidence review is the single obvious forward action. */
.det-theme #nextExhibit{
  background:#dff7fc!important;
  color:#071018!important;
  border-color:#dff7fc!important;
  min-width:210px!important;
}

/* Narrow screens: actions become full-width, preserving hierarchy without crowding. */
@media(max-width:560px){
  .ux2-action-row{display:grid!important;grid-template-columns:1fr!important;width:100%}
  .ux2-action{width:100%!important;min-width:0!important}
  #debrief>.ux2-action-row,#dossier>.ux2-action-row{padding:14px!important}
}

@media(prefers-reduced-motion:reduce){
  .ux2-action{transition:none!important;transform:none!important}
}
