/* --- Base --- */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

/* --- Colours & variables --- */

:root {
  --cv-accent: #57b596;   /* heading color */
  --cv-muted:  #666666;
  --cv-rule:   #314b57;
}

/* --- Header block --- */

.cv-header {
  margin-bottom: 2.5rem;
}

.cv-header h1 {
  margin-bottom: 0.25rem;
}

.cv-header em {
  color: var(--cv-muted);
}

/* --- Section headings --- */

h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cv-accent);
  border-bottom: 2px solid var(--cv-rule);
  padding-bottom: 0.25rem;
}

h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.10rem;
  color: #222222;
}

/* --- CV item layout: institution left, date right --- */

.cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.75rem;
}

.cv-item-subblock {
  margin-top: 0.35rem;
}

.cv-item-date {
  white-space: nowrap;
  font-size: 0.9rem;
  color: var(--cv-muted);
}

.cv-item-location {
  font-size: 0.9rem;
  color: var(--cv-muted);
  font-style: italic;
  margin-bottom: 0.25rem;
}

/* --- Lists --- */

ul {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

/* --- Responsive: stack institution + date on narrow screens --- */

@media (max-width: 720px) {
  .cv-item-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .cv-item-date {
    text-align: left;
  }
}
