a.pgh-mtg-card-link,
a.pgh-mtg-card-link:visited,
.entry-content a.pgh-mtg-card-link,
.entry-content a.pgh-mtg-card-link:visited,
.editor-styles-wrapper a.pgh-mtg-card-link,
.editor-styles-wrapper a.pgh-mtg-card-link:visited {
    color: #d1242f !important;
    font-weight: 700 !important;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: #d1242f;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

a.pgh-mtg-card-link:hover,
a.pgh-mtg-card-link:focus,
.entry-content a.pgh-mtg-card-link:hover,
.entry-content a.pgh-mtg-card-link:focus,
.editor-styles-wrapper a.pgh-mtg-card-link:hover,
.editor-styles-wrapper a.pgh-mtg-card-link:focus {
    color: #a61b24 !important;
    font-weight: 700 !important;
    text-decoration-color: #a61b24;
}

.pgh-mtg-card-link__mana,
.pgh-mtg-card-link-tooltip__mana {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    margin-right: 4px;
}

.pgh-mtg-card-link-tooltip {
    position: absolute;
    z-index: 99999;
    width: min(380px, calc(100vw - 32px));
    border-radius: 14px;
    background: #111827;
    color: #fff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    pointer-events: none;
}

.pgh-mtg-card-link-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pgh-mtg-card-link-tooltip__inner {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 12px;
}

.pgh-mtg-card-link-tooltip__image {
    width: 120px;
    border-radius: 10px;
}

.pgh-mtg-card-link-tooltip__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.pgh-mtg-card-link-tooltip__title {
    font-size: 15px;
    line-height: 1.25;
}

.pgh-mtg-card-link-tooltip__type,
.pgh-mtg-card-link-tooltip__set {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 6px;
}

.pgh-mtg-card-link-tooltip__oracle {
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .pgh-mtg-card-link-tooltip__inner {
        grid-template-columns: 1fr;
    }

    .pgh-mtg-card-link-tooltip__image {
        width: 100%;
        max-width: 220px;
    }
}
