/* Tables in blog posts, styled from the post editor's table panel (admin rich-editor.js,
   DECISIONS #116). Its own file because two apps need it: the editor's frame and the blog pages.
   leagueroots.css will not do, as leagueroots.com's marketing layout does not load it, and
   blog.css is the public app's alone.
   Everything is on the table, and cells follow it, so a row added later matches the rest. The
   colour is the table's own inline border-color. */
table.lr-table {
    --lr-table-line: 1px;
    --lr-table-style: solid;
    --lr-table-padding: .375rem .75rem;
    border-collapse: collapse;
    border-color: #adb5bd;
    margin-bottom: 1rem;
    max-width: 100%;
}

table.lr-table :is(thead, tbody, tfoot, tr) {
    border-color: inherit;
}

table.lr-table :is(td, th) {
    border-color: inherit;
    border-style: var(--lr-table-style);
    border-width: 0;
    padding: var(--lr-table-padding);
}

table.lr-table-weight-medium { --lr-table-line: 2px; }
table.lr-table-weight-thick { --lr-table-line: 4px; }
table.lr-table-dash-dashed { --lr-table-style: dashed; }
table.lr-table-dash-dotted { --lr-table-style: dotted; }
table.lr-table-space-tight { --lr-table-padding: .125rem .375rem; }
table.lr-table-space-roomy { --lr-table-padding: .75rem 1rem; }

table.lr-table-lines-all :is(td, th) {
    border-width: var(--lr-table-line);
}

table.lr-table-lines-rows :is(td, th) {
    border-width: var(--lr-table-line) 0;
}

table.lr-table-lines-outer {
    border-style: var(--lr-table-style);
    border-width: var(--lr-table-line);
}

table.lr-table-header tr:first-child > * {
    background-color: rgba(0, 0, 0, .07);
    font-weight: 700;
}

table.lr-table-striped tr:nth-child(even) > * {
    background-color: rgba(0, 0, 0, .04);
}
