/* Verwijzing-popups voor groeiboeken (figuur-/tabel-/literatuurverwijzingen).
   Hoort bij src/js/groeiboek-verwijzingen.js en de shortcodes in
   functions/groeiboek/groeiboek-shortcodes.php. */

.groeiboekGoogleDocs a.ref-popup,
a.ref-popup {
    color: #81a208;
    text-decoration: none;
    border-bottom: 1px dotted #81a208;
    cursor: pointer;
}

a.ref-popup:hover,
a.ref-popup:focus {
    color: #5f7a06;
    border-bottom-style: solid;
}

#refPopupCard {
    position: fixed;
    z-index: 99999;
    display: none;
    background: #fff;
    border: 1px solid #d9ddcc;
    border-top: 3px solid #81a208;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    padding: 14px 36px 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

#refPopupCard.is-open {
    display: block;
}

#refPopupCard .ref-popup-card__type {
    font-weight: 700;
    margin-bottom: 4px;
    color: #5f7a06;
}

#refPopupCard .ref-popup-card__close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: none;
    font-size: 20px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 2px 4px;
}

#refPopupCard .ref-popup-card__close:hover {
    color: #333;
}

#refPopupCard .ref-popup-card__link {
    display: inline-block;
    margin-top: 8px;
    color: #81a208;
    font-weight: 600;
    text-decoration: underline;
}
