/* =============================================================================
   Service Intel reset for cPanel.

   The reset of NCA Lite (src/Web/src/assets/main.css), but descendant-scoped under .si-cp, the technique
   of SI V2 (ServiceIntelligence.Web/Content/si-v2/si-reset.css): cPanel's legacy pages share the document
   and must not change until they are migrated. A page opts in by putting .si-cp on <body> (or on its root).
   The scope is written :where(.si-cp), which adds no specificity: like the bare element selectors of NCA Lite,
   these rules then lose to any class (.si-t-display-lg must beat the h1 reset, as it does in NCA Lite).

   Consumes tokens only. Declares none. Load after tokens.css.
   ============================================================================= */

:where(.si-cp),
:where(.si-cp) *,
:where(.si-cp) *::before,
:where(.si-cp) *::after {
    box-sizing: border-box;
}

body.si-cp {
    margin: 0;
    padding: 0;
    background: var(--si-color-background);
}

:where(.si-cp) h1,
:where(.si-cp) h2,
:where(.si-cp) h3,
:where(.si-cp) h4,
:where(.si-cp) h5,
:where(.si-cp) h6,
:where(.si-cp) p,
:where(.si-cp) figure,
:where(.si-cp) blockquote,
:where(.si-cp) dl,
:where(.si-cp) dd {
    margin: 0;
}

:where(.si-cp) h1,
:where(.si-cp) h2,
:where(.si-cp) h3,
:where(.si-cp) h4,
:where(.si-cp) h5,
:where(.si-cp) h6 {
    font-size: inherit;
    font-weight: inherit;
}

/* Markers are re-added by the components that need prose lists. */
:where(.si-cp) ul,
:where(.si-cp) ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

:where(.si-cp) a {
    color: var(--si-color-primary);
    text-decoration: none;
}

:where(.si-cp) a:hover {
    color: var(--si-color-on-primary-fixed-variant);
    text-decoration: underline;
}

:where(.si-cp) button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

:where(.si-cp) button:disabled {
    cursor: not-allowed;
}

:where(.si-cp) input,
:where(.si-cp) select,
:where(.si-cp) textarea {
    font: inherit;
    color: inherit;
}

:where(.si-cp) img,
:where(.si-cp) svg {
    display: block;
    max-width: 100%;
}

:where(.si-cp) :focus-visible {
    outline: none;
    box-shadow: var(--si-focus-ring);
}

@media (prefers-reduced-motion: reduce) {
    :where(.si-cp) *,
    :where(.si-cp) *::before,
    :where(.si-cp) *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Hidden from sight, still read by assistive technology and still part of the form. */
:where(.si-cp) .si-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* The ring spinner of the button's loading state. */
:where(.si-cp) .si-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    opacity: 0.8;
    animation: si-spinner-spin 0.7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .si-cp .si-spinner {
        animation: none;
    }
}

@keyframes si-spinner-spin {
    to {
        transform: rotate(360deg);
    }
}
