/* Force Calibri font family everywhere with safe fallbacks */
body, h1, h2, h3, h4, h5, p, ul, li, a {
  font-family: Calibri, Arial, Helvetica, sans-serif !important;
}

/* Default (light mode) layout */
body {
  margin: 0.5in;
  background-color: #ffffff;
  color: #000000;
}

.resume-container {
  max-width: 900px;     /* Keeps content readable on wide screens */
  margin: 0 auto;       /* Centers horizontally */
  padding: 1.5rem;      /* Breathing room */
  background-color: #ffffff;
}

/* Dates inline with headings */
h3 .dates {
  font-size: 0.875rem;      /* Slightly smaller than body */
  font-weight: 400;
  color: #555;              /* Softer contrast */
  margin-left: 0.5rem;      /* Natural continuation spacing */
  white-space: nowrap;      /* Prevents awkward date breaks */
}

/* Print styles — authoritative for pagination */
@media print {
  body {
    margin: 0.2in;
    padding: 0;
    background: white !important;
    color: black !important;
  }

  .resume-container {
    max-width: none;
    margin: 0;
    padding: 0;
    background: white !important;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  section {
    page-break-inside: avoid;
  }
}

/* Dark mode — respects system/browser preference */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e6e6e6;
  }

  .resume-container {
    background-color: #181818;
  }

  h1, h2, h3, h4, h5 {
    color: #ffffff;
  }

  h3 .dates {
    color: #b0b0b0;
  }

  a {
    color: #8ab4f8;
  }
}
