/* ----------------------- FONTS ----------------------- */

@font-face {
    font-family: "Petrona";
    src: url("/assets/fonts/Petrona.woff2") format("woff");
}

@font-face {
    font-family: "Petrona Italic";
    src: url("/assets/fonts/Petrona-Italic.woff2") format("woff");
}

@font-face {
    font-family: "Petrona Light";
    src: url("/assets/fonts/Petrona.woff2") format("woff");
}

@font-face {
    font-family: "Petrona Medium";
    src: url("/assets/fonts/Petrona.woff2") format("woff");
}

@font-face {
    font-family: "Petrona Light Italic";
    src: url("/assets/fonts/Petrona-Italic.woff2") format("woff");
}

@font-face {
    font-family: "Forum";
    src: url("/assets/fonts/ForumRegular.woff") format("woff");
}

:root {
  --font-ui: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-brand: "Petrona", var(--font-ui);
}

body {
  font-family: var(--font-brand);
}

/* ─── Accessibility: focus indicators (ARC §131) ──────────────────────── */

:focus-visible {
  outline: 2px solid #4F46E5;
  outline-offset: 2px;
}

/* ─── Global scrollbar baseline ─────────────────────────────────────────── */
/* Applies to any scrollable element not covered by a specific class.        */

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.14);
    border-radius: 99px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.28);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.14) transparent;
}

/* ─── Hidden scrollbar ───────────────────────────────────────────────────── */

.hidden-scrolls::-webkit-scrollbar {
    display: none;
}

.hidden-scrolls {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ─── Elegant scrollbar ──────────────────────────────────────────────────── */

.lab-scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.lab-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.lab-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 99px;
    transition: background 0.2s;
}

.lab-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.32);
}

.lab-scroll::-webkit-scrollbar-corner {
    background: transparent;
}

.lab-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

/* Dark variant — for elements on dark backgrounds (laboratory panels, overlays) */

.lab-scroll-dark::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.lab-scroll-dark::-webkit-scrollbar-track {
    background: transparent;
}

.lab-scroll-dark::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 99px;
    transition: background 0.2s;
}

.lab-scroll-dark::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.lab-scroll-dark::-webkit-scrollbar-corner {
    background: transparent;
}

.lab-scroll-dark {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}