/* ============================================================
   SDS Solutions IT Onboarding Portal
   base.css — Reset, typography, global elements
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--font-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--page-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

/* ── Scrollbar ── */
::-webkit-scrollbar         { width: 5px; height: 5px; }
::-webkit-scrollbar-track   { background: transparent; }
::-webkit-scrollbar-thumb   { background: var(--border-strong); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--border-xstrong); }

/* ── Selection ── */
::selection {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* ── Focus ring ── */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hidden { display: none !important; }
.flex   { display: flex; }
.grid   { display: grid; }

/* ── Print ── */
@media print {
  .sidebar,
  .mobile-header,
  .mark-done-btn,
  .action-row,
  .start-btn { display: none !important; }

  .main-wrap { margin-left: 0 !important; }

  .page { display: block !important; page-break-before: always; }
  .page:first-child { page-break-before: auto; }
}
