/* ============================================================
   Orbita Publishing Portal – Reset
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* A dialog sets body { overflow: hidden } so the page behind it cannot
     scroll. The scrollbar then disappears, the content gains its width in one
     step and the whole page jumps sideways - and back when the dialog closes.
     Keeping the gutter reserved costs nothing and stops every one of them. */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }

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

img, svg, video, canvas { display: block; max-width: 100%; }

img { height: auto; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: var(--primary); text-decoration: none; transition: color var(--dur-fast) ease; }
a:hover { color: var(--primary-hover); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }

table { border-collapse: collapse; border-spacing: 0; width: 100%; }

code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.92em; }

::selection { background: var(--blue-100); color: var(--navy-900); }

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

/* Scrollbars: slim and quiet */
* { scrollbar-width: thin; scrollbar-color: var(--slate-300) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }
*::-webkit-scrollbar-track { background: transparent; }

[hidden] { display: none !important; }
