/* Summary articles (.wpca-article). Colours derive from the theme's text
   colour, so they work on light and dark themes; fonts are left to the theme. */

.wpca-article figure {
    margin: 2em 0;
}

.wpca-article figcaption {
    margin-top: 0.6em;
    font-size: 0.85em;
    opacity: 0.75;
}

.wpca-article svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.wpca-article table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    font-size: 0.95em;
    line-height: 1.4;
}

.wpca-article figure table {
    margin: 0;
}

.wpca-article th,
.wpca-article td {
    padding: 0.7em 0.9em;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent);
    text-align: left;
    vertical-align: top;
}

.wpca-article thead th {
    border-bottom: 2px solid currentColor;
    font-weight: 600;
    white-space: nowrap;
}

.wpca-article tbody tr:nth-child(even) {
    background-color: color-mix(in srgb, currentColor 4%, transparent);
}

.wpca-article tbody tr:hover {
    background-color: color-mix(in srgb, currentColor 8%, transparent);
}

.wpca-article tbody td:first-child {
    font-weight: 600;
}

/* Wide tables scroll sideways on phones instead of squeezing. */
@media (max-width: 600px) {
    .wpca-article table {
        display: block;
        overflow-x: auto;
    }
}
