/* Light/dark comparison with a moving line (27 Nov 2026, families page "real warning").
   Two real screenshots stacked; the dark one shows to the right of the line. No frame, no shadow:
   the screenshots keep their own window corners. The line sweeps by itself (ldcmp.v1.js) until
   someone drags it or uses the arrow keys; with reduced motion it stays in the middle. */
.ldcmp{max-width:880px;margin:0 auto}
.ldcmp__box{--pos:50%;position:relative;direction:ltr;line-height:0;touch-action:pan-y;-webkit-user-select:none;user-select:none;cursor:ew-resize}
.ldcmp__img{display:block;width:100%;height:auto;pointer-events:none;-webkit-user-drag:none}
.ldcmp__img--dark{position:absolute;top:0;left:0;clip-path:inset(0 0 0 var(--pos));-webkit-clip-path:inset(0 0 0 var(--pos))}
.ldcmp__line{position:absolute;top:0;bottom:0;left:var(--pos);width:2px;margin-left:-1px;background:#5b4cd2;box-shadow:0 0 0 1px rgba(255,255,255,.55);outline:none}
.ldcmp__knob{position:absolute;top:50%;left:50%;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;background:#fff;color:#5b4cd2;box-shadow:0 2px 10px rgba(15,24,39,.28);display:flex;align-items:center;justify-content:center}
.ldcmp__knob svg{width:22px;height:22px;display:block}
.ldcmp__line:focus-visible .ldcmp__knob{outline:2px solid #0441a8;outline-offset:2px}
.ldcmp__tag{position:absolute;bottom:14px;padding:4px 9px;border-radius:4px;font:600 12px/1.4 var(--sans,system-ui,sans-serif);letter-spacing:.02em;pointer-events:none}
.ldcmp__tag--l{left:14px;background:#fff;color:#0f1827;box-shadow:0 1px 4px rgba(15,24,39,.18)}
.ldcmp__tag--d{right:14px;background:#1c1c6c;color:#fff}
.ldcmp__cap{text-align:center;font-size:13px;color:var(--mut,#55607a);margin:16px auto 0;max-width:60ch;line-height:1.5}
@media (max-width:700px){
  .ldcmp__knob{width:34px;height:34px;margin:-17px 0 0 -17px}
  .ldcmp__knob svg{width:18px;height:18px}
  .ldcmp__tag{bottom:8px;padding:3px 7px;font-size:11px}
  .ldcmp__tag--l{left:8px}
  .ldcmp__tag--d{right:8px}
}
