/* Iqra Learning skin for the shared rw-a11y widget (2026-10-27, Hamza: "old accessibility styling and wrong
   hover"). Same structure as the rankwyre.com skin (icon square | text | switch, one row shape), re-themed to
   Iqra's DESIGN.md: white panel, ink #262626, slate #4a5766, navy #002147 for icon squares and the ON switch,
   Epilogue, hairline borders, 160ms. Hover is a light navy tint; focus is a 2px navy outline (no heavy boxes).
   Icons are the rankwyre.com skin's own SVGs (white glyphs). "html body" outranks the widget's injected style. */
html body .rw-a11y-ui{--rw-bg:#ffffff;--rw-ink:#262626;--rw-muted:#4a5766;--rw-line:rgba(0,33,71,.1);--rw-accent:#002147;
  font-family:Epilogue,system-ui,sans-serif}
html body .rw-a11y-fab,html body .rw-a11y-fab.rw-a11y-ondark{width:48px;height:48px;border-radius:14px;border:1px solid rgba(0,33,71,.16);
  background:#ffffff;color:#002147;box-shadow:0 1px 2px rgba(0,33,71,.08);transition:border-color 160ms cubic-bezier(.22,.61,.36,1),transform 160ms cubic-bezier(.22,.61,.36,1)}
html body .rw-a11y-fab:hover,html body .rw-a11y-fab.rw-a11y-ondark:hover{border-color:#002147;transform:translateY(-1px);background:#ffffff}
html body .rw-a11y-fab svg{width:24px;height:24px}

html body .rw-a11y-panel{width:min(392px,calc(100vw - 24px));border:1px solid rgba(0,33,71,.14);border-radius:16px;background:#ffffff;
  box-shadow:0 24px 60px -18px rgba(0,33,71,.35)}
html body .rw-a11y-panel::backdrop{background:rgba(0,33,71,.28)}
html body .rw-a11y-head{padding:16px 16px 14px 18px;border-bottom:1px solid rgba(0,33,71,.1)}
html body .rw-a11y-head h2{display:flex;align-items:center;gap:11px;font:700 18px/1.2 Epilogue,system-ui,sans-serif;letter-spacing:-.01em;color:#262626}
html body .rw-a11y-head h2::before{content:"";flex:none;width:32px;height:32px;border-radius:9px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='4.2' r='1.9' fill='white' stroke='none'/%3E%3Cpath d='M4.6 8.2c2.4.9 4.9 1.4 7.4 1.4s5-.5 7.4-1.4M12 9.6v4.6M12 14.2 9.2 21M12 14.2 14.8 21'/%3E%3C/svg%3E") center/18px 18px no-repeat,#002147}
html body .rw-a11y-x{width:36px;height:36px;border-radius:11px;border:1px solid rgba(0,33,71,.14);color:#002147;background:#ffffff;transition:border-color 160ms cubic-bezier(.22,.61,.36,1)}
html body .rw-a11y-x:hover{border-color:#002147;background:#ffffff}
html body .rw-a11y-scroll{padding:8px;max-height:calc(min(640px,100vh - 32px) - 140px)}

/* one row shape for text size and the six toggles: icon square | text | control */
html body .rw-a11y-step,html body .rw-a11y-row label{display:flex;align-items:center;gap:12px;padding:11px 10px;border:1px solid transparent;border-radius:12px;
  transition:background-color 160ms cubic-bezier(.22,.61,.36,1),border-color 160ms cubic-bezier(.22,.61,.36,1)}
html body .rw-a11y-step{border-bottom:0;margin-bottom:2px;background:#f4f3f1}
html body .rw-a11y-row{border-bottom:0;margin-top:2px}
html body .rw-a11y-row label:hover{background:rgba(0,33,71,.04)}
html body .rw-a11y-row:has(input:checked) label{background:rgba(0,33,71,.05);border-color:rgba(0,33,71,.2)}
html body .rw-a11y-step .lbl::before,html body .rw-a11y-row label::before{content:"";flex:none;width:32px;height:32px;border-radius:9px;
  background:var(--rwi) center/18px 18px no-repeat,#002147}
html body .rw-a11y-step .lbl{display:flex;align-items:center;gap:12px;font:600 15px/1.3 Epilogue,system-ui,sans-serif;color:#262626}
html body .rw-a11y-row .txt{flex:1}
html body .rw-a11y-row .t{font:600 15px/1.3 Epilogue,system-ui,sans-serif;color:#262626}
html body .rw-a11y-row .d{font:400 13px/1.4 Epilogue,system-ui,sans-serif;color:#4a5766;margin-top:2px}

/* stepper buttons */
html body .rw-a11y-step button{width:34px;height:34px;border:1px solid rgba(0,33,71,.18);border-radius:10px;color:#002147;font:600 17px/1 Epilogue,system-ui,sans-serif;background:#ffffff}
html body .rw-a11y-step button:hover:not(:disabled){border-color:#002147}
html body .rw-a11y-step output{min-width:48px;font:700 14px/1 Epilogue,system-ui,sans-serif;color:#262626}

/* checkbox becomes a switch (still a real checkbox underneath) */
html body .rw-a11y-box{order:3;position:relative;width:40px;height:24px;margin:0;border-radius:99px;border:0;background:#dcdad6;transition:background 160ms cubic-bezier(.22,.61,.36,1)}
html body .rw-a11y-box svg{display:none}
html body .rw-a11y-box::after{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#ffffff;
  box-shadow:0 1px 2px rgba(0,33,71,.25);transition:transform 160ms cubic-bezier(.22,.61,.36,1)}
html body .rw-a11y-row input:checked ~ .rw-a11y-box{background:#002147}
html body .rw-a11y-row input:checked ~ .rw-a11y-box::after{transform:translateX(16px)}

/* row icons (white glyphs on the navy square) */
html body .rw-a11y-step{--rwi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7V4h16v3M9 20h6M12 4v16'/%3E%3C/svg%3E")}
html body .rw-a11y-row:has([data-key="motion"]){--rwi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10 15V9M14 15V9'/%3E%3C/svg%3E")}
html body .rw-a11y-row:has([data-key="contrast"]){--rwi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 3a9 9 0 0 1 0 18z' fill='white'/%3E%3C/svg%3E")}
html body .rw-a11y-row:has([data-key="underline"]){--rwi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4v6a6 6 0 0 0 12 0V4M4 20h16'/%3E%3C/svg%3E")}
html body .rw-a11y-row:has([data-key="readable"]){--rwi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20 12 4l8 16M7.5 13h9'/%3E%3C/svg%3E")}
html body .rw-a11y-row:has([data-key="spacing"]){--rwi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12H3M7 8l-4 4 4 4M17 8l4 4-4 4'/%3E%3C/svg%3E")}
html body .rw-a11y-row:has([data-key="focus"]){--rwi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8V5a2 2 0 0 1 2-2h3M16 3h3a2 2 0 0 1 2 2v3M21 16v3a2 2 0 0 1-2 2h-3M8 21H5a2 2 0 0 1-2-2v-3'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}

html body .rw-a11y-foot{padding:12px 16px 14px;border-top:1px solid rgba(0,33,71,.1);background:#ffffff}
html body .rw-a11y-foot button{height:40px;padding:0 18px;border:1px solid rgba(0,33,71,.2);border-radius:20px;color:#002147;
  font:500 15px/1 Epilogue,system-ui,sans-serif;background:#ffffff;transition:border-color 160ms cubic-bezier(.22,.61,.36,1)}
html body .rw-a11y-foot button:hover{border-color:#002147}

/* focus: one thin navy ring everywhere */
html body .rw-a11y-fab:focus-visible,html body .rw-a11y-x:focus-visible,html body .rw-a11y-step button:focus-visible,
html body .rw-a11y-foot button:focus-visible,html body .rw-a11y-row input:focus-visible ~ .rw-a11y-box{outline:2px solid #002147;outline-offset:2px}
html body .rw-a11y-x:focus:not(:focus-visible){outline:none}
@media (prefers-reduced-motion:reduce){html body .rw-a11y-fab,html body .rw-a11y-x,html body .rw-a11y-box,html body .rw-a11y-box::after,html body .rw-a11y-row label{transition:none}}
