/* factlockit-only overrides for the shared flc-compare stage.
   Loaded after /flc-compare/compare.css so these win. */

/* Equal-width 01/02/03 chips, shrink-wrapped so they don't span the stage. */
.flc-compare-pills{
  display:inline-grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  justify-content:start;
  width:max-content;
  max-width:100%;
}
.flc-compare-pills span{text-align:center;min-width:0}

/* Official compare.css reduced-motion sets animation:none on
   .flc-compare-pills span, which loses to the [data-state] animation
   rules (and this file must load after compare.css for the same reason). */
@media (prefers-reduced-motion: reduce){
  .flc-compare-pills span[data-state="factlocked"],
  .flc-compare-pills span[data-state="changed"],
  .flc-compare-pills span[data-state="nomatch"]{animation:none}
  .flc-compare-pills span[data-state="nomatch"]{border-color:#ff5c5c;color:#ff5c5c}
}

/* (c) At 1440, cap each compare card at about 520px. */
@media (min-width:1440px){
  .demo-block .flc-compare-stage{
    grid-template-columns:repeat(2, minmax(0, 520px));
    justify-content:center;
  }
  .demo-block .flc-compare{align-items:center}
}

/* (b) Move common preview / accessibility FABs off the 02 card at 390 and 360.
   The widget is not in this repo (it appears on the Vercel preview); these
   selectors cover UserWay, accessiBe and the Vercel toolbar if present. */
@media (max-width:767px){
  #userwayAccessibilityIcon,
  .uai,
  #uw-main,
  .userway_buttons_wrapper,
  #access1,
  #acsbAppContainer,
  .acsb-trigger,
  vercel-live-feedback,
  #vercel-toolbar,
  [data-vercel-toolbar]{
    top:auto !important;
    bottom:calc(var(--sticky-clearance, 120px) + 12px) !important;
    right:12px !important;
  }
  /* Fallback inset so a right-edge FAB cannot nick the 02 No match badge. */
  .demo-block .flc-compare{padding-right:48px;box-sizing:border-box}
}
