.cv {
  max-width: 860px;
  margin: 0 auto;
}

.cv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--navy, #1f3a5f);
}

.cv-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin: 0;
  color: var(--navy, #1f3a5f);
}

.cv-role {
  margin: 0.35rem 0 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cv-about {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  opacity: 0.85;
}

.cv-contact {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.95rem;
}

.cv-head .button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---- Sections ---- */
.cv-section {
  margin-top: 2.5rem;
}

.cv-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.9rem;
  margin: 0 0 1.25rem;
  color: var(--navy, #1f3a5f);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* thin amber line after each section title */
.cv-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--amber, #f2a541);
  opacity: 0.6;
}

.cv-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-entry {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.cv-entry + .cv-entry {
  border-top: 1px solid rgba(127, 127, 127, 0.2);
}

.cv-date {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.cv-entry h3,
.cv-skills h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.cv-entry h3 a {
  color: inherit;
  text-decoration-color: var(--amber, #f2a541);
  text-underline-offset: 3px;
}

.cv-entry p {
  margin: 0.3rem 0 0;
  line-height: 1.55;
}

.cv-where {
  font-style: italic;
  opacity: 0.8;
}

.cv-sub {
  margin-top: 0.8rem !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.cv-bullets {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.55;
}

.cv-bullets li + li {
  margin-top: 0.25rem;
}

.cv-bullets li::marker {
  color: var(--amber, #f2a541);
}

.cv-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.cv-skills h3 {
  margin-bottom: 0.6rem;
}


@media (max-width: 640px) {
  .cv-head {
    flex-direction: column;
  }
  .cv-entry {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cv-head .button {
    display: none;
  }
  .cv-section {
    break-inside: avoid-page;
  }
  .cv-entry {
    break-inside: avoid;
  }
}
