
dl dt h5 {
  margin-bottom: 0;
  line-height: 1;
}
dl dt p {
  margin: 0;
}

dl {
    position: relative;
}


dl dt span {
    margin-top:16px;
    display: flex;
    gap: 26px;
}
dl dt span h5 {
    margin-top: 0;
}
dl dt span span {
    flex-direction: column;
    gap: 1px;
}
dl dt span span:first-child {
    position: relative;
}
dl dt span span:last-child h5::before {
    display:none;
}
dl dt span span:first-child::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 8px);
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 10px solid #ccc;
    transform: translateY(-50%);    
}

.arrow-right {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid black;
  }

dl::after {
  content: "";
  position: absolute;
  top: 15px;
  left: -10px;
  width: 10px;
  height: 100%;
  border-left: 1px solid #ccc;
  z-index: 1;
}

dl dt h5 {
    position: relative;
}
dl dt h5::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 12px;
  height: 12px;
  background-color: #ccc;
  transform: translate(-50%, -50%);
  border-radius: 100%;
}
.cv-print-options {
    display: flex;
    gap: 16px;
}
.cv-print-options a {
    font-size: 12px;
    padding: 4px 8px;
    text-decoration: none;
    border-radius: 4px;
    font-family: sans-serif;
}
.cv-print-options a:hover {
    text-decoration: none;
    background-color: #f0f0f0;
}
.cv-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}
.cv-header div:first-child {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cv-header h1 {
    margin-top: 0;
    margin-bottom: 5px;
}
.cv-header p {
    margin: 2px;
    font-family: sans-serif;
    font-size: 16px;
}
.cv-contact {
    text-align: right;
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.2;
}

.cv-layout section a[target="_blank"] {
     position: relative;
}

.cv-layout section a[target="_blank"]:after {
    content: "";
     position: absolute;
     background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==)
          no-repeat center;
     width: 1em;
     height: 1em;
}


.short--about-me h3 {margin: 4px 0;}
.short--about-me .headline { padding: 0; font-size: 16px; margin: 0; line-height: 1; font-family: sans-serif;}
.short--about-me .contact p { font-size: 16px; line-height: 1.4; font-family: sans-serif;}

[class^="short--"] {
    display: none;
}
[class^="long--header"] {
    display: grid;
}


.shorter-version .cv-layout {
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 38px;
}

.shorter-version dl::after, .shorter-version dl dt h5::before {
    display: none;
}


.shorter-version [class^="short--"] {
    display: initial;
}
.shorter-version [class^="long--"] {
    display: none;
}

.shorter-version dd {
    margin: 0;
}

.print-show {
    display: none;
}



@media screen and (max-width: 768px) {
    .cv-header {
        grid-template-columns: 1fr;
    }
    .cv-header div:first-child {
        text-align: center;
    }
    .cv-contact {
        text-align: left;
        margin-top: 16px;
    }

    .content h2 { font-size: 20px;}
    .content h3 { font-size: 18px;}
    .content h5 { font-size: 16px;}
    .content  p, .content  li, .content  em, .content  dd { font-size: 16px; line-height: 1.4;}
    .content dt p { font-size: 14px; line-height: 1.4;}
}

@media print {
    @page {
        margin: 32px;
      }

    dd {
        margin: 0 0 0 15px;
    }
    .cv-print-options { display: none;}
    .header { display: none;}
    .site-footer { display: none;}
    .content { margin-block-start: 0;}
  
    .content h1 { font-size: 24px; margin-bottom: 0;}
    .content h2 { font-size: 22px;}
    .content h3 { font-size: 20px;}
    .content h5 { font-size: 16px;}
    .content  p, .content  li, .content  em, .content  dd { font-size: 12px; line-height: 1.4;}
    .shorter-version dd {
        margin: 5px 0 0 0;
    }
    .shorter-version .cv-section--education h5 {
        font-size: 14px;
    }

    .cv-layout section a[target="_blank"]:after {
        display: none;
    }
    dl::after { display: none;}

    .cv-layout a {
        color: black;
        text-decoration: none;
    }

    .print-hidden {
        display: none;
    }

    .print-show {
        display: initial;
    }

    .short--about-me .contact p { font-size: 12px; line-height: 1.4; font-family: sans-serif;}
    
  }
  