@page {
  size: A4;
  margin: 16mm 17mm;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #23302e;
  background: #fff;
  font:
    10.5pt/1.48 Arial,
    Helvetica,
    sans-serif;
}
a {
  color: #205c54;
  text-decoration: none;
}
h1 {
  font-size: 30pt;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 8px;
  color: #172b28;
}
.role {
  font-size: 12pt;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #205c54;
  margin: 0 0 13px;
}
.contact {
  font-size: 9pt;
  line-height: 1.7;
}
.header {
  padding-bottom: 18px;
  border-bottom: 2px solid #205c54;
  margin-bottom: 20px;
}
h2 {
  font-size: 10pt;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #205c54;
  margin: 23px 0 12px;
  border-bottom: 1px solid #d3dedb;
  padding-bottom: 6px;
}
h3 {
  font-size: 11pt;
  line-height: 1.35;
  margin: 0;
  color: #172b28;
}
.job {
  margin-bottom: 18px;
  break-inside: avoid;
}
.job-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}
.date {
  font-size: 9pt;
  white-space: nowrap;
  color: #596963;
}
.company {
  font-size: 10pt;
  font-weight: 600;
  margin: 3px 0 6px;
}
p {
  margin: 0 0 8px;
}
ul {
  padding-left: 17px;
  margin: 5px 0 0;
}
li {
  margin-bottom: 4px;
}
.skills p {
  margin-bottom: 6px;
}
.skills strong {
  display: inline-block;
  min-width: 84px;
}
.page-two {
  break-before: page;
}
.page-label {
  color: #596963;
  font-size: 9pt;
  border-bottom: 1px solid #d3dedb;
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}
.project {
  margin-bottom: 15px;
  break-inside: avoid;
}
.project p {
  margin: 3px 0 0;
}
.project a {
  font-size: 9pt;
}
.education {
  margin-bottom: 14px;
  break-inside: avoid;
}
.education p {
  margin: 4px 0;
}
.course {
  margin-bottom: 10px;
}
small {
  font-size: 9pt;
  color: #596963;
}
.footer {
  margin-top: 22px;
  font-size: 9pt;
  color: #596963;
  border-top: 1px solid #d3dedb;
  padding-top: 10px;
}
body {
  font-size: 9.5pt;
  line-height: 1.35;
}
.header {
  padding-bottom: 12px;
  margin-bottom: 14px;
}
h2 {
  margin: 17px 0 9px;
  padding-bottom: 5px;
}
.job {
  margin-bottom: 12px;
}
li {
  margin-bottom: 3px;
}
.project {
  margin-bottom: 11px;
}
.education {
  margin-bottom: 10px;
}
.page-label {
  margin-bottom: 12px;
}
.footer {
  margin-top: 16px;
}

@media screen {
  .language-switcher {
    display: flex;
    gap: 4px;
    align-items: center;
  }
  .language-switcher a {
    padding: 6px 10px;
    border: 1px solid #47576e;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
  }
  .language-switcher a[aria-current="true"] {
    background: #91b8ff;
    color: #303f55;
    border-color: #91b8ff;
  }
  html {
    background: #253247;
  }
  body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 40px 45px;
    background: #253247;
    color: #edf2f9;
    box-shadow: none;
    font:
      16px/1.8 "DM Sans",
      Arial,
      sans-serif;
  }
  h1 {
    font:
      600 clamp(36px, 5vw, 64px)/1.2 "Manrope",
      Arial,
      sans-serif;
    letter-spacing: -2px;
    color: #edf2f9;
    margin-bottom: 22px;
  }
  h1 span {
    color: #91b8ff;
  }
  h2 {
    font:
      600 22px/1.4 "Manrope",
      Arial,
      sans-serif;
    text-transform: none;
    letter-spacing: 0;
    color: #edf2f9;
    border-color: #47576e;
    margin: 36px 0 22px;
    padding-bottom: 12px;
  }
  h3 {
    font:
      600 17px/1.5 "Manrope",
      Arial,
      sans-serif;
    color: #edf2f9;
  }
  a,
  .role {
    color: #91b8ff;
  }
  .role {
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
  }
  .contact {
    font-size: 14px;
    line-height: 1.8;
    color: #bac6d8;
  }
  .header {
    border-bottom: 1px solid #47576e;
    padding-bottom: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .header-details {
    min-width: 0;
    flex: 1;
  }
  .cv-portrait {
    width: 150px;
    height: 185px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 12px;
    border: 1px solid #47576e;
  }
  @media (max-width: 600px) {
    .header {
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 22px;
    }
    .header-details {
      flex-basis: 100%;
    }
    .cv-portrait {
      width: 115px;
      height: 140px;
    }
    .contact {
      overflow-wrap: anywhere;
    }
  }
  section p,
  li {
    color: #bac6d8;
  }
  .skills strong {
    color: #edf2f9;
    min-width: 110px;
  }
  .job {
    border-left: 1px solid #47576e;
    padding-left: 24px;
    margin-bottom: 26px;
    position: relative;
  }
  .job::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 9px;
    width: 9px;
    height: 9px;
    background: #91b8ff;
    border-radius: 50%;
  }
  .company {
    color: #edf2f9;
    font-size: 14px;
    margin: 7px 0 10px;
  }
  .date {
    color: #91b8ff;
    font-size: 13px;
  }
  li {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 6px;
  }
  .project {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #47576e;
  }
  .project a,
  .project small,
  small {
    font-size: 14px;
  }
  small {
    color: #bac6d8;
  }
  .education,
  .course {
    margin-bottom: 24px;
  }
  .page-label {
    display: none;
  }
  .footer {
    border-color: #47576e;
    color: #bac6d8;
    font-size: 13px;
    margin-top: 35px;
    padding-top: 22px;
  }
  .cv-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #47576e;
    font-size: 14px;
  }
  .cv-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .cv-toolbar button,
  .cv-download {
    font:
      600 14px "DM Sans",
      Arial,
      sans-serif;
    background: #91b8ff;
    color: #303f55;
    border: 1px solid #91b8ff;
    border-radius: 6px;
    padding: 13px 18px;
    cursor: pointer;
    text-decoration: none;
  }
  .cv-toolbar button {
    background: #303f55;
    color: #edf2f9;
    border-color: #47576e;
  }
  .cv-toolbar button:hover,
  .cv-download:hover {
    background: #b6cfff;
    color: #253247;
  }
  a:focus-visible,
  button:focus-visible {
    outline: 2px solid #91b8ff;
    outline-offset: 4px;
  }
  .page-two {
    border-top: 1px solid #47576e;
    padding-top: 5px;
    margin-top: 35px;
  }
  @media (max-width: 800px) {
    body {
      margin: 0;
      padding: 24px;
      box-shadow: none;
    }
    .job-header {
      flex-wrap: wrap;
      gap: 4px;
    }
    .date {
      white-space: normal;
    }
    .page-label {
      gap: 16px;
      flex-wrap: wrap;
    }
    h1 {
      font-size: 28pt;
    }
    .skills strong {
      min-width: 75px;
    }
  }
}
@media print {
  .cv-toolbar {
    display: none;
  }
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    break-inside: avoid;
  }
  .header-details {
    flex: 1;
    min-width: 0;
  }
  .cv-portrait {
    display: block;
    width: 82px;
    height: 100px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 6px;
  }
}
