/**
 * Drox Vehicle Manager – Article & table styles
 * Loaded on frontend (View page) and in editor so article pages look correct with any theme.
 */

/* Page title (Default title pattern) – only on article pages where this CSS loads */
.entry-header .entry-title,
.entry-header h1,
.page .entry-title,
.single .entry-title,
h1.entry-title,
.page-title {
    text-align: left;
    font-size: 1.75rem;
    line-height: 1.3;
    margin: 0 0 0.75em 0;
    max-width: 100%;
    word-wrap: break-word;
}

/* Article wrapper */
.drox-article,
.drox-article-content {
    max-width: 100%;
    box-sizing: border-box;
}

.drox-article h1,
.drox-article-content h1 { margin-top: 0; }

/* Table: borders, spacing, header */
.drox-article-table,
.drox-article .drox-article-table,
.drox-article-content .drox-article-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    border: 1px solid #c3c4c7;
    margin: 1em 0;
    font-size: 0.95em;
    box-sizing: border-box;
}

.drox-article-table th,
.drox-article-table td,
.drox-article .drox-article-table th,
.drox-article .drox-article-table td {
    border: 1px solid #c3c4c7;
    padding: 0.5em 0.75em;
    text-align: left;
    vertical-align: top;
}

.drox-article-table thead th,
.drox-article .drox-article-table thead th {
    background: #f0f0f1;
    font-weight: 600;
    color: #1d2327;
}

.drox-article-table tbody tr:nth-child(even),
.drox-article .drox-article-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.drox-article-table tbody tr:hover,
.drox-article .drox-article-table tbody tr:hover {
    background: #f0f6fc;
}

/* Avoid header text wrapping where possible */
.drox-article-table thead th {
    white-space: nowrap;
}

@media screen and (max-width: 782px) {
    .drox-article-table th,
    .drox-article-table td,
    .drox-article .drox-article-table th,
    .drox-article .drox-article-table td {
        padding: 0.4em 0.5em;
        font-size: 0.9em;
    }
}
