/* Contextual internal links: a quiet navigation line, not a tool card. */
.related-tools {
    width: 100%;
    max-width: 888px;
    margin: 28px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.related-label {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 6px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.related-icon {
    width: 14px;
    height: 14px;
    flex: none;
    color: #9ca3af;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.related-links a {
    color: #111;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    text-underline-offset: 3px;
}

.related-links a:hover {
    text-decoration: underline;
}

.related-sep {
    display: inline-flex;
    align-items: center;
    margin: 0 8px;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1;
}

body:not(.ui-editor) > .container > .related-tools {
    max-width: none;
    margin: 28px 0 0;
    padding: 0;
}


.tool-category {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 888px;
    margin: 8px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.tool-category-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-weight: 500;
}

.tool-category a {
    color: #111;
    text-decoration: none;
    text-underline-offset: 3px;
}

.tool-category a:hover {
    text-decoration: underline;
}

body:not(.ui-editor) > .container > .tool-category {
    max-width: none;
    margin: 8px 0 0;
    padding: 0;
}

@media (max-width: 768px) {
    .related-tools {
        margin-top: 24px;
        padding: 0 16px;
        font-size: 13px;
    }

    .related-label {
        font-size: 13px;
        gap: 5px;
    }

    .related-icon {
        width: 13px;
        height: 13px;
    }

    .related-links a {
        font-size: 13px;
    }

    .related-sep {
        margin: 0 6px;
        font-size: 13px;
    }

    body:not(.ui-editor) > .container > .related-tools {
        margin-top: 24px;
        padding: 0;
    }

    .tool-category {
        margin-top: 6px;
        padding: 0 16px;
        font-size: 12px;
    }

    body:not(.ui-editor) > .container > .tool-category {
        margin-top: 6px;
        padding: 0;
    }
}
