/* Minimalist Resume Style */

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #4a4a4a;
  --accent-color: #2563eb;
  --text-color: #333333;
  --light-gray: #666666;
  --border-color: #d1d5db;
  --bg-color: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 9pt;
  line-height: 1.2;
  color: var(--text-color);
  background: var(--bg-color);
  max-width: 8.5in;
  margin: 0 auto;
  padding: 0.125in 0.4in;
  -webkit-font-smoothing: antialiased;
}

/* Hide pandoc title header */
header#title-block-header {
  display: none;
}

/* Header Section */
h1 {
  font-size: 22pt;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4pt;
  letter-spacing: -0.5px;
  line-height: 1.2;
  border-bottom: none;
}

/* Job title (bold paragraph after h1) */
h1 + p {
  font-size: 13pt;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 2pt;
  line-height: 1.3;
  text-transform: none;
}

/* Location line */
h1 + p + p {
  font-size: 10pt;
  color: var(--light-gray);
  margin-bottom: 6pt;
  line-height: 1.3;
}

/* Contact links */
h1 + p + p + p {
  font-size: 9pt;
  color: var(--light-gray);
  margin-bottom: 8pt;
  padding-bottom: 4pt;
  line-height: 1.5;
}

h1 + p + p + p a {
  white-space: nowrap;
}

/* Links styling */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* Section headers */
h2 {
  font-size: 13pt;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 0pt;
  margin-bottom: 1pt;
  padding-bottom: 2pt;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* First section header (Summary) - no extra top margin needed */
h2:first-of-type {
  margin-top: 0pt;
}

/* Subsequent section headers */
h2 + * + h2,
#summary + p + h2,
#core-skills + ul + h2 {
  margin-top: 6pt;
}

/* Core Skills section - after Focus line */
#core-skills {
  margin-top: 5pt;
}

/* Education section - after last experience */
#education {
  margin-top: 7pt;
}

/* Summary section */
#summary + p {
  font-size: 10pt;
  line-height: 1.2;
  margin-bottom: 2pt;
  color: var(--text-color);
  text-align: justify;
}

#summary + p + p {
  font-size: 11pt;
  color: var(--light-gray);
  font-style: italic;
  margin-bottom: 3pt;
  text-align: justify;
}

/* Job titles / subsection headers */
h3 {
  font-size: 11pt;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 3pt;
  margin-bottom: 1pt;
  line-height: 1.3;
}

/* First h3 after EXPERIENCE section - less top margin */
#experience + h3 {
  margin-top: 2pt;
}

/* Environment paragraph after job description bullets */
h3 + ul + p {
  margin-top: 4pt;
  margin-bottom: 4pt;
}

/* "Selected impact:" subsection heading */
h4 {
  font-size: 10pt;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 2pt;
  margin-bottom: 1pt;
  line-height: 1.3;
}

/* "Selected impact:" after Environment paragraph (extended resume only) */
p + h4 {
  margin-top: 4pt;
}

/* Category labels under "Selected impact:" (e.g., "Infrastructure modernization:") */
h5 {
  font-size: 9pt;
  font-weight: normal;
  font-style: italic;
  color: var(--secondary-color);
  margin-top: 2pt;
  margin-bottom: 1pt;
  line-height: 1.3;
}

/* List after h4/h5 - add bottom margin for separation */
h4 + ul,
h5 + ul {
  margin-bottom: 2pt;
}

/* Lists */
ul {
  margin-left: 14pt;
  margin-bottom: 2pt;
  line-height: 1.2;
}

li {
  margin-bottom: 0pt;
  padding-left: 2pt;
  color: var(--text-color);
  font-size: 9pt;
}

li::marker {
  color: var(--light-gray);
}

/* Skills section - single column */
#core-skills + ul {
  margin-left: 16pt;
  columns: 1;
}

#core-skills + ul li {
  font-size: 9pt;
}


/* Education section */
#education + ul li {
  font-size: 9pt;
}

/* Screen styles - larger fonts for HTML viewing */
@media screen {
  body {
    font-size: 10pt;
  }

  h1 {
    font-size: 23pt;
  }

  h1 + p {
    font-size: 14pt;
  }

  h1 + p + p {
    font-size: 11pt;
  }

  h1 + p + p + p {
    font-size: 10pt;
  }

  h2 {
    font-size: 14pt;
  }

  #summary + p {
    font-size: 11pt;
  }

  #summary + p + p {
    font-size: 12pt;
  }

  h3 {
    font-size: 12pt;
  }

  h4 {
    font-size: 11pt;
  }

  h5 {
    font-size: 10pt;
  }

  li {
    font-size: 10pt;
  }

  #core-skills + ul li {
    font-size: 10pt;
  }

  #education + ul li {
    font-size: 10pt;
  }
}

/* Print styles */
@media print {
  body {
    padding: 0.125in 0.35in;
    max-width: 100%;
  }

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

  h2 {
    page-break-after: avoid;
  }

  h3 {
    page-break-after: avoid;
  }

  ul {
    page-break-inside: avoid;
  }
}

/* PDF optimization */
@page {
  size: A4;
  margin: 0.2in 0.35in;
}
