/*
Theme Name: Advocacy (Bricks child)
Description: Child theme for the regulator reporting template. Design lives in Bricks (theme style, variables, classes, components). This file only covers things Bricks has no control for.
Template: bricks
Version: 1.0.0
*/

/* Tables inside rich text and post content */
.brxe-text table, .brxe-post-content table { width: 100%; border-collapse: collapse; font-size: var(--text-s); margin-block: var(--space-m); }
.brxe-text th, .brxe-text td, .brxe-post-content th, .brxe-post-content td { text-align: left; vertical-align: top; padding: var(--space-xs) var(--space-s) var(--space-xs) 0; border-bottom: 1px solid var(--rule); }
.brxe-text thead th, .brxe-post-content thead th { border-bottom: 2px solid var(--ink); font-weight: 600; }
.brxe-text td.num, .brxe-text th.num, .brxe-post-content td.num, .brxe-post-content th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }

/* Wide tables scroll sideways on small screens instead of breaking the page */
.brxe-text:has(> table), .brxe-post-content:has(> table) { overflow-x: auto; }
