/* ORX Tech — base reset & element defaults (dark-only product). */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--orx-font-sans);
  font-size: var(--orx-text-base);
  line-height: var(--orx-leading-normal);
  color: var(--orx-text);
  background: var(--orx-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* RTL: Arabic content reflows automatically; type switches to the Arabic stack. */
[dir="rtl"] {
  font-family: var(--orx-font-arabic);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--orx-weight-semibold);
  color: var(--orx-text-strong);
  line-height: var(--orx-leading-tight);
}

p {
  margin: 0;
}

a {
  color: var(--orx-primary);
  text-decoration: none;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--orx-primary);
  outline-offset: 2px;
}

::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--orx-text-strong);
}

/* Custom scrollbar to match the dark HUD aesthetic */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.4);
  background-clip: content-box;
}

/* Chrome/Safari force a white (or yellow) background + dark text on an
   autofilled input, ignoring its own background-color entirely — the only
   override that actually works is an inset box-shadow large enough to cover
   the field, plus -webkit-text-fill-color for the text itself. The long
   transition delays the browser's own flash-of-yellow before this applies. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  box-shadow: 0 0 0px 1000px transparent inset !important;
  -webkit-text-fill-color: var(--orx-text-strong) !important;
  caret-color: var(--orx-text-strong) !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* Utility: the "ORX TECH" tech eyebrow lockup */
.orx-eyebrow {
  font-family: var(--orx-font-tech);
  letter-spacing: var(--orx-tracking-tech);
  text-transform: uppercase;
  color: var(--orx-text-secondary);
}

/* Utility: hides the scrollbar on a horizontally/vertically scrollable
   container while keeping it scrollable — the element itself must also set
   scrollbar-width:"none" inline (Firefox reads that, not this rule). Several
   call sites already reference this class name; only the Firefox half of
   the fix ever actually shipped since this rule itself was never defined. */
.orx-noscroll::-webkit-scrollbar {
  display: none;
}

/* Audio player dark styling */
audio {
  color-scheme: dark;
  border-radius: 999px;
  background-color: transparent;
}
audio::-webkit-media-controls-enclosure {
  background-color: #0b172a !important;
}
audio::-webkit-media-controls-panel {
  background-color: #0b172a !important;
  color: #fff !important;
}
