/* =============================================================================
/* Hugo-Cite.css
/* ----------------------------------------------------------------------------- */

.hugo-cite-group {
  display: inline-block;
  vertical-align: baseline; /*compensate for lower height */
  position: relative;
  font-size: .90em; /* reduce to avoid some breaks */
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hugo-cite-group
  .hugo-cite-citation {
    visibility: hidden;
    background-color: #ffffff;
    color: inherit;
    border: 1px solid currentColor;
    padding: 1rem;
    position: absolute;
    width: 350px;
    max-width: 100vw;
    z-index: 1;
    bottom: 140%;
    left: 0;
    margin-left: -50px;

    z-index: 2;
    transition:
      visibility 0s .3s,
      transform .3s ease 0s,
      opacity .3s ease 0s;
    opacity: 0;
    transform: translateY(-8px);
}
.hugo-cite-group:hover
  .hugo-cite-citation {
    visibility: visible;
    transition: visibility 0s 0s, transform .3s, opacity .3s;
    opacity: 1;
    transform: translateY(0);
}

/* Visually Hidden utility class */
.visually-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}


/* 允许引用在适当的位置换行 */
.hugo-cite-intext,
.hugo-cite-intext-t {
    display: inline;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 使括号保持与引用内容在一起 */
.hugo-cite-intext::before,
.hugo-cite-intext::after,
.hugo-cite-intext-t::before,
.hugo-cite-intext-t::after {
    white-space: wrap;
}

/* 允许在逗号和分号后换行 */
.hugo-cite-intext span::after,
.hugo-cite-intext-t span::after {
    white-space: normal;
}

/* 为长引用添加一个小的视觉提示 */
.hugo-cite-intext,
.hugo-cite-intext-t {
    border-bottom: 1px dotted #ccc;
    padding-bottom: 1px;
}