/* Keep the original paragraph in control of typography, margins and line breaks. */
a.dcghfl-link[href],
a.dcghfl-link[href]:is(:visited, :hover, :focus, :active) {
    display: block;
    position: relative;
    inline-size: fit-content;
    max-inline-size: 100%;
    margin: 0;
    padding: 0;
    border: 0 !important;
    color: inherit !important;
    background: none !important;
    box-shadow: none !important;
    text-shadow: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-decoration: none !important;
    transition: none !important;
    -webkit-tap-highlight-color: transparent;
}

a.dcghfl-link[href] span {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-decoration: none;
}

a.dcghfl-link[href] > .dcghfl-desktop[hidden] {
    display: none !important;
}

/* The live About section has 16px free above, 18px beside it and 26px below. */
@media (hover: none), (pointer: coarse) {
    a.dcghfl-link[href]::after {
        content: "";
        position: absolute;
        top: calc(0px - min(var(--dcghfl-padding, 16px), 16px));
        right: calc(0px - min(var(--dcghfl-padding, 16px), 18px));
        bottom: calc(0px - min(var(--dcghfl-padding, 16px), 26px));
        left: calc(0px - min(var(--dcghfl-padding, 16px), 18px));
    }
}

@media (hover: hover) and (pointer: fine) {
    a.dcghfl-link[href] > .dcghfl-plain {
        display: none !important;
    }

    a.dcghfl-link[href] > .dcghfl-desktop[hidden] {
        display: inline !important;
    }

    a.dcghfl-link[href] .dcghfl-words {
        text-decoration-line: underline;
        text-decoration-thickness: 0.075em;
        text-underline-offset: 0.14em;
    }
}

a.dcghfl-link[href]:focus {
    outline: 2px solid currentColor !important;
    outline-offset: 3px;
}

a.dcghfl-link[href]:focus:not(:focus-visible) {
    outline: none !important;
}
