/* Interactive WHOIS object links (AS page + domain history page). */

.ce-whois-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ce-accent-light);
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    text-align: left;
    white-space: pre;
}

.ce-whois-link:hover,
.ce-whois-link:focus-visible {
    color: var(--ce-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ce-whois-link:focus-visible {
    outline: 2px solid var(--ce-accent);
    outline-offset: 1px;
    border-radius: 2px;
}

.ce-whois-back {
    margin-right: 4px;
}

/* IPv4 address with an AS tooltip. */
.ce-whois-ip {
    color: var(--ce-accent-light);
    cursor: help;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
}

.ce-whois-ip:hover,
.ce-whois-ip:focus-visible {
    color: var(--ce-accent);
}

.ce-whois-ip:focus-visible {
    outline: 2px solid var(--ce-accent);
    outline-offset: 1px;
    border-radius: 2px;
}

/* Registrar nic-hdl with a TCI WHOIS tooltip (domain statistics pages). */
.ce-whois-registrar {
    color: var(--ce-accent-light);
    cursor: help;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
}

.ce-whois-registrar:hover,
.ce-whois-registrar:focus-visible {
    color: var(--ce-accent);
}

.ce-whois-registrar:focus-visible {
    outline: 2px solid var(--ce-accent);
    outline-offset: 1px;
    border-radius: 2px;
}

/* Hover tooltip card (positioned by JS, appended to <body>). */
.ce-whois-ip-tip {
    position: fixed;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 320px;
    padding: 8px 12px;
    border: 1px solid var(--ce-line-soft);
    border-radius: var(--ce-radius-md);
    background: var(--ce-surface);
    box-shadow: 0 8px 24px rgba(11, 12, 16, 0.35);
    color: var(--ce-text, inherit);
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
}

.ce-whois-ip-tip-as {
    color: var(--ce-accent-light);
    font-weight: 600;
    text-decoration: none;
}

.ce-whois-ip-tip-as:hover,
.ce-whois-ip-tip-as:focus-visible {
    color: var(--ce-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ce-whois-ip-tip-prefix {
    color: var(--ce-text-dim);
    font-size: 12px;
}

/* Registrar tooltip card: wider, with a small field list. */
.ce-whois-reg-tip {
    max-width: 380px;
    gap: 4px;
}

.ce-whois-reg-tip-handle {
    font-weight: 600;
}

.ce-whois-reg-tip-org {
    color: var(--ce-text, inherit);
}

.ce-whois-reg-tip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: baseline;
}

.ce-whois-reg-tip-label {
    color: var(--ce-text-dim);
}

.ce-whois-reg-tip-link {
    color: var(--ce-accent-light);
    text-decoration: none;
    word-break: break-all;
}

.ce-whois-reg-tip-link:hover,
.ce-whois-reg-tip-link:focus-visible {
    color: var(--ce-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ce-whois-reg-tip-note {
    color: var(--ce-text-dim);
}

.ce-whois-reg-tip-raw {
    color: var(--ce-text-dim);
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 180px;
    overflow: hidden;
}
