/* === Base styles (WeasyPrint-compatible) === */

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

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11pt;
  line-height: 1.4;
  color: #333;
  max-width: 850px;
  margin: 0 auto;
  padding: 2em;
}

main {
  max-width: 100%;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  margin-bottom: 1.5em;
  padding-bottom: 1em;
  border-bottom: 2px solid #1e3a5f;
  position: relative;
}

h1 {
  font-size: 2em;
  font-weight: 300;
  color: #1e3a5f;
  margin-bottom: 0.1em;
}

.title {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 0.5em;
}

.contact {
  list-style: none;
  padding: 0;
  margin-bottom: 0.5em;
}

.contact li {
  display: inline;
}

.contact li + li::before {
  content: " | ";
  color: #999;
}

.pdf-link {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.4em 1em;
  background: #1e3a5f;
  color: #fff;
  border-radius: 4px;
  font-size: 0.85em;
}

.pdf-link:hover {
  background: #2a4f7f;
  text-decoration: none;
}

/* Sections */
h2 {
  font-size: 1.2em;
  font-weight: 600;
  color: #1e3a5f;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.2em;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Entries */
.entry {
  margin-bottom: 0.8em;
}

.entry-header {
  display: block;
}

.entry-header h3 {
  font-size: 1em;
  font-weight: 600;
  color: #222;
  display: inline;
}

.entry-header .dates {
  font-size: 0.9em;
  color: #666;
  float: right;
}

.org {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 0.3em;
}

.loc {
  color: #777;
}

.loc::before {
  content: "— ";
}

.industry {
  color: #777;
  font-style: italic;
}

.industry::before {
  content: "— ";
}

ul {
  margin: 0.3em 0 0 1.5em;
  padding: 0;
}

li {
  margin-bottom: 0.15em;
}

/* Details list */
.details-list {
  display: block;
}

.details-list dt {
  font-weight: 600;
  color: #444;
  margin-top: 0.4em;
}

.details-list dd {
  margin-left: 0;
  margin-bottom: 0.3em;
}

/* === Screen enhancements === */
@media screen {
  .contact .phone {
    display: none;
  }

  .contact .phone + li::before {
    content: none;
  }

  body {
    background: #f5f5f5;
  }

  main {
    background: #fff;
    padding: 2em;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }

  .entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .entry-header .dates {
    float: none;
    white-space: nowrap;
  }

  .details-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3em 1em;
  }

  .details-list dt {
    margin-top: 0;
  }

  .details-list dd {
    margin-bottom: 0;
  }
}

/* === Print styles === */
@media print {
  body {
    padding: 0;
    font-size: 10pt;
    max-width: none;
  }

  a {
    color: #333;
  }

  .pdf-link {
    display: none;
  }

  h2 {
    margin-top: 0.8em;
    page-break-after: avoid;
  }

  .entry {
    page-break-inside: avoid;
  }

  .details {
    page-break-inside: avoid;
  }

  header {
    margin-bottom: 1em;
    padding-bottom: 0.5em;
  }
}
