/* Nexus Control — Safe Reset
 *
 * CRITICAL: Only box-sizing:border-box on the universal selector.
 * Adding margin:0 / padding:0 there has specificity (1,0,0) which
 * beats EVERY class rule (specificity (0,1,0)) and wipes all spacing.
 * All element-specific resets use tag selectors under #nxctl-portal
 * which only compete with other tag rules, never with class rules.
 */

#nxctl-portal *,
#nxctl-portal *::before,
#nxctl-portal *::after {
    box-sizing: border-box;
}

/* Browser default typography resets */
#nxctl-portal h1, #nxctl-portal h2, #nxctl-portal h3,
#nxctl-portal h4, #nxctl-portal h5, #nxctl-portal h6 {
    margin: 0; padding: 0;
    font-size: inherit; font-weight: inherit;
    line-height: inherit; color: inherit;
}

#nxctl-portal p,
#nxctl-portal blockquote,
#nxctl-portal pre { margin: 0; padding: 0; }

#nxctl-portal ul,
#nxctl-portal ol { margin: 0; padding: 0; list-style: none; }

#nxctl-portal li { margin: 0; padding: 0; }

#nxctl-portal a {
    color: inherit;
    text-decoration: none;
}

#nxctl-portal button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
}

#nxctl-portal input,
#nxctl-portal textarea,
#nxctl-portal select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#nxctl-portal table  { border-collapse: collapse; border-spacing: 0; }
#nxctl-portal th,
#nxctl-portal td     { padding: 0; }
#nxctl-portal img    { max-width: 100%; display: block; }
#nxctl-portal fieldset { border: 0; margin: 0; padding: 0; }
#nxctl-portal svg    { display: block; }
