.wiki-grid a,
.wiki-faq a,
.wiki-alert a,
.wiki-steps a,
.wiki-table a,
.editable-text a {
    display: inline-flex;
    align-items: center;
    background-color: #f0f9ff;
    color: #0369a1;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 2px;
    font-size: 0.95em;
    border: 1px solid #e0f2fe;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wiki-grid a:hover,
.wiki-faq a:hover,
.wiki-alert a:hover,
.wiki-steps a:hover,
.wiki-table a:hover,
.editable-text a:hover {
    background-color: #e0f2fe;
    border-color: #bae6fd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wiki-grid a:focus,
.wiki-faq a:focus,
.wiki-alert a:focus,
.wiki-steps a:focus,
.wiki-table a:focus,
.editable-text a:focus {
    outline: none;
    ring-color: #0ea5e9;
    ring-offset: 2px;
    ring-offset-color: white;
}

.wiki-grid a::after,
.wiki-faq a::after,
.wiki-alert a::after,
.wiki-steps a::after,
.wiki-table a::after,
.editable-text a::after {
    content: '↗';
    display: inline-block;
    margin-left: 6px;
    font-size: 0.85em;
    color: #0369a1;
    opacity: 0.6;
}

.wiki-grid a:hover::after,
.wiki-faq a:hover::after,
.wiki-alert a:hover::after,
.wiki-steps a:hover::after,
.wiki-table a:hover::after,
.editable-text a:hover::after {
    opacity: 1;
}

.wiki-alert.warning a {
    background-color: #fff7ed;
    border-color: #ffedd5;
    color: #c2410c;
}

.wiki-alert.warning a:hover {
    background-color: #ffedd5;
    border-color: #fed7aa;
}

.wiki-alert.info a {
    background-color: #f0f9ff;
    border-color: #e0f2fe;
    color: #0369a1;
}

.wiki-alert.info a:hover {
    background-color: #e0f2fe;
    border-color: #bae6fd;
}