/* ==========================================================================
   Resume stylesheet — matches the design of Jeff_Meisenhelder_Resume.pdf
   Built for plain Markdown rendered to semantic HTML (h1/h2/h3, p, strong,
   em, ul/li, table/td) — no custom classes required. Works with Pandoc,
   VS Code's Markdown preview, static site generators, Obsidian export, etc.

   Usage:
     pandoc resume.md -s -c resume.css -o resume.html
   or link it from any HTML wrapper around the rendered markdown:
     <link rel="stylesheet" href="resume.css">
   ========================================================================== */

:root {
  --navy: #1b2a41;
  --navy-soft: #9fb3d1;
  --navy-pale: #dbe4f0;
  --accent: #4f77ab;
  --accent-pale: #eef2f8;
  --accent-border: #c9d6e8;
  --text: #2b2f36;
  --muted: #5a6472;
  --hairline: #d7dde5;
  --page-pad: 40px;
}

* { box-sizing: border-box; }

html, body {
  background: #ffffff;
}

body {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--page-pad);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

/* ---------- Header banner (h1 + the two paragraphs right after it) ------- */

h1 {
  margin: calc(var(--page-pad) * -1) calc(var(--page-pad) * -1) 0;
  padding: 34px var(--page-pad) 4px;
  background: var(--navy);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Tagline: the first paragraph right after the H1 */
h1 + p {
  margin: 0 calc(var(--page-pad) * -1) 0;
  padding: 2px var(--page-pad) 10px;
  background: var(--navy);
  color: var(--navy-soft);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}
h1 + p strong {
  color: var(--navy-soft);
  font-weight: 300;
}

/* Contact line: the paragraph right after the tagline */
h1 + p + p {
  margin: 0 calc(var(--page-pad) * -1) 24px;
  padding: 6px var(--page-pad) 26px;
  background: var(--navy);
  color: var(--navy-pale);
  font-size: 0.9rem;
}

/* Hide the "---" rule used only to separate the banner from the body */
h1 + p + p + hr {
  display: none;
}

/* ---------- Section headers (##) ---------- */

h2 {
  margin: 28px 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 4px;
}
h1 ~ h2:first-of-type {
  margin-top: 4px;
}

/* ---------- Skills table ---------- */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
  margin: 6px -6px 18px;
}
table td {
  background: var(--accent-pale);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  padding: 6px 10px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--navy);
}
table th { display: none; } /* in case a renderer keeps an (empty) header row */

/* ---------- Bulleted lists (certifications + experience) ---------- */

ul {
  margin: 6px 0 16px;
  padding-left: 18px;
}
ul li {
  margin-bottom: 4px;
  padding-left: 2px;
}
ul li::marker {
  color: var(--accent);
}
ul ul {
  margin: 4px 0 4px;
}
ul ul li::marker {
  color: #9fb0c5;
}

/* ---------- Work experience (### company headings) ---------- */

h3 {
  margin: 18px 0 2px;
  padding-bottom: 3px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--hairline);
}

/* Company date line: the paragraph directly under a company heading */
h3 + p {
  margin: 4px 0 8px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}
h3 + p em {
  color: var(--muted);
  font-weight: 400;
}

/* ---------- Inline emphasis defaults ---------- */

strong {
  color: var(--navy);
  font-weight: 700;
}
em {
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
}

/* Certification / reference dates read better muted, not bold-accent */
li em {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95em;
}

p {
  margin: 10px 0 2px;
}

hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 20px 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.cornerflag {
	position: fixed;
	top: 0px;
	right: 0px;
	padding: 10px 16px;
	border: 1px dotted black;
	background-color: #FFFFCC;
	z-index: 1002;
	text-align: center;
	color: #000000;
	white-space: nowrap;
}
/* ---------- Print / PDF export ---------- */

@media print {
  @page {
    size: Letter;
    margin: 0;
  }
  body {
    padding: var(--page-pad);
  }
  h3 {
    page-break-after: avoid;
  }
  h3 + p {
    page-break-before: avoid;
  }
  ul {
    page-break-inside: avoid;
  }
}
