/*   = = =   Core Global Styles : what the application restores after the reset   = = =   */

/* - - - Origin : the benchmark's Styling-Revamp--Enhance.css, which follows its Normalize and puts back the
   one thing that project needs (its font). This is Nox Cella's own companion : the reset removes EVERY
   browser default, and four of them were load-bearing here — the fonts and colours are the theme's
   (Nox-Config.php, injected by index.php) and are not restated. - - - */

/* - - - Load Order : directly after Core--Styles-Reset/Styling-Revamp--Normalize.css and BEFORE
   Theme-Styling.css, so every sheet of the app still declares over both. - - - */



/*   = = = = = =   Line Height   = = = = = =   */

/* - - - The reset sets the body to `line-height: 1`, and this app declared no line-height of its own in
   most of its sheets : it was built on the browser's `normal`, and at 1 every uppercase caption, every
   field and every button loses the room its letters sit in. - - - */
body
{
    line-height: normal;
}



/*   = = = = = =   The Pointer   = = = = = =   */

/* - - - The reset puts `cursor: default` on every button and link. The app's own controls declare their
   pointer where they are styled; the ones that relied on the browser — a disclosure's summary, a label
   for a switch, an anchor — get it back here, and a control the app has REFUSED keeps the default the
   house rule gives it. - - - */
button:not(:disabled):not(.is-refused),
[type="button"]:not(:disabled):not(.is-refused),
[type="reset"]:not(:disabled):not(.is-refused),
[type="submit"]:not(:disabled):not(.is-refused),
a[href],
summary,
label[for]
{
    cursor: pointer;
}



/*   = = = = = =   The Focus Ring   = = = = = =   */

/* - - - The reset removes every focus outline (its own comment says what that costs). A pointer never
   needs one; a keyboard does, and `:focus-visible` is the browser's own answer to which is which. One
   hairline in the accent, outside the control, and never on a text field — those already answer focus
   with their border. - - - */
:focus-visible
{
    outline: 1px solid var(--primary-color);
    outline-offset: 2px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[contenteditable="true"]:focus-visible
{
    outline: none;
}



/*   = = = = = =   The Scrollbar   = = = = = =   */

/* - - - The reset hides every WebKit scrollbar (`::-webkit-scrollbar { width: 0 }`). Chrome ignores that
   pseudo wherever `scrollbar-width` is declared, which the app's scrolling surfaces already do
   (ModalShell-Styling.css) — but a surface without one would lose its bar entirely, so the standard
   property is declared once here for everything : thin, in the accent, and any surface may declare
   its own over it. - - - */
*
{
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-rgb), 0.45) transparent;
}

/* - - - Author : Nikolaos S. Kaounas - - - */
