/* A readable paper surface for the research and work archive. */
#cv.cv-view {
  color-scheme: light;
  --text: #17323d;
  --muted: #385663;
  --quiet: #385663;
  --mint: #075f59;
  --cyan: #075f59;
  --line: #b5c9ce;
  --line-bright: #075f59;
  color: #17323d;
  background: #fff;
  font-size: 18px;
  line-height: 1.75;
}

/* The immersive dialog otherwise clears every section's paper background. */
body.immersive-site #exploration-screen main > #cv.cv-view {
  color: #17323d;
  background: #fff;
  padding: 38px;
}

#cv .section-kicker,
#cv .cv-section > h3,
#cv .language-skill h4 {
  color: #075f59;
}
#cv .section-title,
#cv .cv-entry h4,
#cv .cv-publication-title,
#cv strong {
  color: #17323d;
}
#cv p,
#cv .language-skill p,
#cv .cv-publications li {
  color: #17323d;
  font-size: 18px;
  line-height: 1.75;
}
#cv .cv-entry > span {
  color: #385663;
  font-size: 16px;
}
#cv a,
#cv .cv-source {
  color: #075f59;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
#cv a:hover {
  color: #003d37;
}
#cv .button {
  color: #17323d;
  background: #fff;
  border-color: #66838b;
  font-size: 16px;
  opacity: 1;
}
#cv .button.primary {
  color: #fff;
  background: #0b625b;
  border-color: #0b625b;
}
#cv .button.primary:hover {
  color: #fff;
  background: #064a44;
  border-color: #064a44;
}
#cv .button.quiet:hover {
  color: #17323d;
  background: #edf5f4;
  border-color: #075f59;
}
#cv :is(button, a):focus-visible {
  outline: 3px solid #075f59;
  outline-offset: 4px;
}
#cv .cv-columns > .cv-section:first-child {
  grid-column: 1 / -1;
}
#cv .language-skill {
  background: #edf5f4;
  border: 1px solid #adc4c8;
}
#cv .language-skill-level {
  font-weight: 650;
  margin-bottom: 6px;
}
#cv ol.cv-publications {
  padding-left: 1.5em;
  margin: 0;
}
#cv ol.cv-publications li {
  padding-left: 0.2em;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}
#cv .cv-publication-title {
  font-weight: 600;
}

@media (max-width: 800px) {
  body.immersive-site #exploration-screen main > #cv.cv-view {
    padding: 28px 20px;
  }
  #cv.cv-view,
  #cv p,
  #cv .language-skill p,
  #cv .cv-publications li {
    font-size: 17px;
  }
  #cv .cv-actions .button {
    min-height: 48px;
  }
}

@media print {
  @page { size: A4; margin: 16mm; }
  html,
  body.immersive-site {
    color-scheme: light;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    color: #111 !important;
    background: #fff !important;
  }
  body::before,
  #molecular-world,
  #explorer-guide,
  #research-preview,
  .site-header,
  .site-footer,
  .layer-rail,
  .toast,
  #case-dialog,
  #photo-dialog {
    display: none !important;
  }
  /* Remove the fullscreen dialog and scrolling viewport from page layout. */
  body.immersive-site #exploration-screen[open] {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #111 !important;
    background: #fff !important;
    box-shadow: none !important;
    animation: none !important;
    transform: none !important;
  }
  #exploration-screen::backdrop,
  #exploration-screen .screen-header,
  #exploration-screen .screen-tabs,
  #cv .cv-actions {
    display: none !important;
  }
  body.immersive-site #exploration-screen :is(.screen-body, main) {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    transform: none !important;
  }
  #exploration-screen main > :not(#cv) {
    display: none !important;
  }
  body.immersive-site #exploration-screen main > #cv.cv-view,
  #cv.cv-view[hidden] {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #111 !important;
    background: #fff !important;
  }
  #cv,
  #cv * {
    color: #111 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  #cv.cv-view .section-head {
    display: block;
    margin-bottom: 15pt;
  }
  #cv.cv-view .section-title {
    font-size: 24pt;
    line-height: 1.3;
  }
  #cv p,
  #cv .language-skill p,
  #cv .cv-publications li {
    font-size: 11.5pt;
    line-height: 1.55;
    orphans: 3;
    widows: 3;
  }
  #cv :is(.section-kicker, .cv-entry > span, .cv-source, a) {
    font-size: 10.5pt;
  }
  #cv .cv-columns,
  #cv .language-skill-grid {
    display: block;
  }
  #cv .cv-columns { margin-top: 20pt; }
  #cv .cv-section,
  #cv ol.cv-publications {
    break-inside: auto;
    page-break-inside: auto;
  }
  #cv .cv-section { margin-bottom: 22pt; }
  #cv :is(h2, h3, h4) {
    break-after: avoid;
    page-break-after: avoid;
  }
  #cv .cv-section > h3 {
    font-size: 14pt;
    line-height: 1.4;
    margin-bottom: 12pt;
    padding-bottom: 6pt;
    border-color: #666;
  }
  #cv .cv-entry {
    margin-top: 14pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #cv .cv-entry h4 { font-size: 12pt; }
  #cv .language-skill {
    padding: 12pt 0;
    border: 0;
    border-bottom: 1px solid #aaa;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #cv .language-skill h4 { font-size: 12pt; }
  #cv ol.cv-publications li {
    margin-bottom: 12pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #cv a { text-decoration: underline; }
}
