html, body {
    padding: 0;
    margin: 0;
}

* {
    flex: 0 0 auto;
}

body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#document {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    font: 12pt Verdana, Arial, sans-serif;
}

#header {
    display: flex;
    flex-flow: row nowrap;
    box-sizing: border-box;
    padding: 1em 0;
    border-bottom: 3px solid #CCC;
}

#title {
    margin: 0 1em;
    flex: 1 1 auto;
}

#title h1, #title h2 {
    margin: 0;
    padding: 0;
}

#title h1.name {
    font-size: 20pt;
    font-variant: small-caps;
}

#title h2 {
    font-size: 16pt;
    font-variant: small-caps;
    color: #999;
}

#photo {
    width: 3cm;
    height: 3cm;
    display: flex;
    flex-flow: row nowrap;
    position: relative;
}

#photo .image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#photo .image-container-circle {
    overflow: hidden;
    border-radius: 50%;
    background: transparent center center no-repeat url('images/me/bg-300-400.jpg');
    background-size: 100% 100%;
}

#photo .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

#photo img {
    max-width: 100%;
    max-height: 100%;
}

.contant-entry .icon {
    margin: 0 4pt;
    display: block;
    width: 12pt;
    height: 12pt;
    line-height: 12pt;
}

.icon.icon-phone::after {
    content: '\01F4DE';
}

.icon.icon-email::after {
    content: '\01F4E7';
}

.icon.icon-github {
    background: transparent center center no-repeat url('images/icon/github/github-mark.png');
    background-size: 100% 100%;
}

.icon.icon-gitea {
    background: transparent center center no-repeat url('images/icon/gitea/logo.svg');
    background-size: 100% 100%;
}

.icon.icon-cv::after {
    content: 'CV';
    font: 10pt 'Times New Roman', Times, serif;
}

.contant-entry {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    margin: 4pt 0;
}

.secure-content-fallback {
    display: flex;
    flex-flow: row nowrap;
}

.secure-content-fallback>span:after {
    white-space-collapse: collapse;
    content: attr(data-content);
    font-size: 12pt;
    margin: 0;
}

cv-secure-url, noscript {
    display: contents;
}

#main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}

#main > section {
    flex: 1 1 auto;
}

.column-section {
    box-sizing: border-box;
    border-bottom: 3px solid #CCC;
}

.column-section h1, .column-section h2, .column-section h3, .column-section h4, .column-section h5, .column-section h6 {
    box-sizing: border-box;
}

.chrono-entry {
    padding: 1em 0;
    border-top: 1px dashed #ccc;
    box-sizing: border-box;
}

.project-entry {
    padding: 1em 0;
    border-top: 1px dashed #ccc;
    box-sizing: border-box;
}

.chrono-entry > div {
    margin: 2pt 0;
}

.chrono-entry .chrono-time {
    font-size: 12pt;
    font-weight: bold;
}

.chrono-entry .chrono-title {
    font-size: 12pt;
    font-variant: small-caps;
}

.chrono-entry .chrono-institution {
    font-size: 12pt;
    font-variant: small-caps;
    color: #333;
}

.chrono-entry .chrono-location {
    font-size: 12pt;
    font-variant: small-caps;
    color: #666;
}

.chrono-entry .chrono-description {
    font-size: 10pt;
}

.skill-table {
    font-size: 10pt;
    border-collapse: collapse;
    width: 100%;
}

.skill-table th {
    white-space: nowrap;
}

.skill-table tbody tr {
    border-bottom: 1px dashed #ccc;
}

.skill-table td.confidence-cell {
    text-align: right;
}

.skill-table .skill {
    font-size: 10pt;
}

.skill {
    white-space: nowrap;
    box-sizing: border-box;
}

.footnote {
    font-size: 10pt;
    font-style: italic;
    text-align: justify;
}

#language-skill-table {
    width: 100%;
    font-size: 10pt;
}

#language-skill-table td.column-language {
    font-weight: bold;
}

.project-short-info li, .project-short-info li > * {
    vertical-align: middle;
}

ul>li, ol>li, p {
    page-break-inside: avoid;
    page-break-before: auto;
}

h1, h2, h3, h4, h5, h6, details {
    page-break-inside: avoid;
    page-break-after: avoid;
    page-break-before: auto;
}

table.html-table {
    border-collapse: collapse;
    table-layout: fixed;
}

table.html-table th, table.html-table td {
    border: 1px solid #666;
    padding: 4pt;
}

.bio .title {
    border-bottom: 1px solid #CCC;
    color: #999;
    font-size: 12pt;
    margin-bottom: 0em;
}

.bio .text {
    margin: 0.2em;
    font-size: 10pt;
    font-style: italic;
}