/* StockKonnect UI - Bootstrap guard.
   Lets the redesign sit on pages that also load Bootstrap 3.x / 5.x, Metronic or Bootstrap-styled jQuery plugins
   without changing a single pixel of the design - including hover, focus, active and disabled states.

   HOW TO LOAD (both parts are required)
   1. Load every legacy stylesheet (Bootstrap, Metronic, plugin CSS) inside the "vendor" cascade layer:
        <style>
          @import url("/assets/global/plugins/bootstrap5/css/bootstrap.min.css") layer(vendor);
          @import url("/assets/global/css/components-rounded.css") layer(vendor);
          ...
        </style>
      A layered stylesheet always loses to un-layered CSS, whatever its specificity or load order.
   2. Load this file as the first of our stylesheets, then tokens.css, app.css and the rest (all un-layered).

   WHAT IT DOES - for the elements Bootstrap's "reboot" restyles and for the class names both systems use
   (btn, btn-primary, btn-secondary, btn-sm, card, nav-link, nav-item, alert, row, col, lead, mark, open, sr-only)
   every property is reverted to the browser default. Every selector is wrapped in :where(), so this file has
   zero specificity: it beats anything in the vendor layer, and loses to every rule in our own stylesheets -
   which then set exactly the values the design uses without Bootstrap. */

:where(:root) { scroll-behavior: revert; }
:where(body.ska, body.skl, body.er-body) { all: revert; }

/* Elements Bootstrap's reboot restyles (images and SVG keep their presentation attributes: only vertical-align) */
:where(.ska, .skl, .er-body) :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dt, dd, blockquote, figure, figcaption, hr, address,
  label, legend, fieldset, small, b, strong, mark, abbr, code, kbd, pre, samp, sub, sup, table, caption, thead, tbody, tfoot, tr, th, td,
  button, input, select, optgroup, textarea, output, summary, progress, iframe, a, nav, main, aside, header, footer, section, article) { all: revert; }
:where(.ska, .skl, .er-body) :where(img, svg) { vertical-align: revert; }

/* Class names Bootstrap also uses, in every state */
:where(.ska, .skl, .er-body) :where(.btn, .btn-primary, .btn-secondary, .btn-sm, .card, .nav-link, .nav-item, .alert, .row, .col, .lead, .mark, .open, .sr-only,
  .row > *, .card > hr,
  .btn:hover, .btn:focus, .btn:focus-visible, .btn:active, .btn:disabled, .btn.disabled, .btn.active, .btn.show,
  .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary:disabled, .btn-primary.disabled, .btn-primary.active,
  .btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active, .btn-secondary:disabled, .btn-secondary.disabled, .btn-secondary.active,
  .nav-link:hover, .nav-link:focus, .nav-link:focus-visible, .nav-link.active, .nav-link:disabled) { all: revert; box-sizing: border-box; }

:where(.ska, .skl, .er-body) :where([hidden]) { display: none !important; }
