/*
 * BlogSEO frontend styles.
 *
 * Scoped to .blogseo-table-wrapper / .blogseo-table / .blogseo-image so we
 * never style content that wasn't published by this plugin. Selectors are
 * doubled (.blogseo-image.blogseo-image) to outscore common theme rules like
 * `.entry-content img { ... }` without resorting to !important.
 */

img.blogseo-image.blogseo-image {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 1.75em auto;
    border-radius: 6px;
}

.blogseo-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.75em 0;
    border-radius: 6px;
}

.blogseo-table-wrapper .blogseo-table.blogseo-table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.55;
    background: #ffffff;
    color: inherit;
}

.blogseo-table-wrapper .blogseo-table.blogseo-table th,
.blogseo-table-wrapper .blogseo-table.blogseo-table td {
    border: 1px solid #e5e7eb;
    padding: 0.65em 0.9em;
    text-align: left;
    vertical-align: top;
    line-height: inherit;
}

.blogseo-table-wrapper .blogseo-table.blogseo-table thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
    border-bottom: 2px solid #cbd5e1;
}

.blogseo-table-wrapper .blogseo-table.blogseo-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.blogseo-table-wrapper .blogseo-table.blogseo-table tbody tr:hover {
    background: #f1f5f9;
}

.blogseo-table-wrapper .blogseo-table.blogseo-table caption {
    caption-side: top;
    padding: 0.5em 0;
    font-style: italic;
    color: #64748b;
    text-align: left;
}

.blogseo-table-wrapper .blogseo-table.blogseo-table p:last-child,
.blogseo-table-wrapper .blogseo-table.blogseo-table ul:last-child,
.blogseo-table-wrapper .blogseo-table.blogseo-table ol:last-child {
    margin-bottom: 0;
}
