/* PalmStat ERP · base reset + typography */

*, *::before, *::after { box-sizing: border-box; }
html, body, #app { height: 100%; }

/* Skip-to-content link · WCAG 2.4.1 Bypass Blocks
   Hidden off-screen until focused via Tab, then jumps in as a brand-green pill. */
.skip-link {
  position: fixed;
  top: -40px;
  left: 12px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--brand-700, #1D5634);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 14px;
  transition: top 160ms ease-out;
}
.skip-link:focus, .skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--brand-500, #3FA66F);
  outline-offset: 2px;
}

/* Default size + alignment for inline icons (data-icon hydration) */
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
}
[data-icon] svg {
  width: 1em;
  height: 1em;
  display: block;
}
/* Slightly larger glyph in card titles + section labels */
.card__title [data-icon] svg,
.page-header__title [data-icon] svg { width: 1.1em; height: 1.1em; }
/* Fixed-pixel glyph sizes where the layout demands a specific footprint */
.nav-item__icon [data-icon] svg,
.hr-int-card__logo svg,
.exec-feed__icon svg { width: 18px; height: 18px; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--fg-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "ss01", "cv11";
  letter-spacing: -0.01em;
  overflow: hidden;
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .35em;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--fg-primary);
  line-height: 1.2;
}
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.028em; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
h5, h6 { font-size: .875rem; color: var(--fg-secondary); text-transform: uppercase; letter-spacing: .06em; }

p { margin: 0 0 1rem; }

a { color: var(--brand-fg); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--brand-600); }

button { font: inherit; cursor: pointer; }
code, pre, kbd, samp { font-family: var(--font-mono); font-size: .875em; }

::selection { background: var(--brand-200); color: var(--gray-900); }
[data-theme="dark"] ::selection { background: var(--brand-700); color: var(--gray-50); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border: 2px solid var(--bg-base); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body { background: white; color: black; }
  .no-print { display: none !important; }
}
