/* D-1068 (design-guard G7): how a drawn record looks where a reader sees it — in the admin and in the record block of a post.
 * A dependency of admin.css and of the record block's own style (Stylesheets), so it is said once for both.
 * A value from data arrives as a CSS variable (--taxmod-…); the rule that uses it stands here. */

.taxmod-block { display: block; }
.taxmod-pointer { cursor: pointer; }

/* Text kept in its line breaks. */
.taxmod-pre-wrap { white-space: pre-wrap; }

/* Compact: the parts of a value on one line (or one column) and never cut inside a part (D-1538). `.taxmod-compact-horizontal > *`
   already gives a part flex 0 0 auto; the vertical form had it only inline. */
.taxmod-compact { display: flex; gap: .25em; }
.taxmod-compact-vertical { flex-direction: column; align-items: flex-start; flex-wrap: wrap; }
.taxmod-compact-horizontal { flex-direction: row; align-items: baseline; flex-wrap: wrap; max-width: 100%; }
.taxmod-compact-part { flex: 0 0 auto; }

/* A page block folded away: its gap above. `!important` because `.taxmod-detail-pane > :first-child > .taxmod-page-block:first-child`
   (0,4,0) takes margin-top away and the inline value used to outweigh it. */
details.taxmod-page-block.taxmod-page-block-folded { margin-top: 1em !important; }
.taxmod-semibold { font-weight: 600; }

/* A page block's title. Beats `.taxmod-page-block > h3:first-child { margin-top: 0 }` (0,2,1). */
.taxmod-page-block > h3.taxmod-page-block-title,
.taxmod-page-block > h3.taxmod-page-block-title:first-child { margin: 1em 0 .4em; }

/* A colour patch before a value or a colour choice; dashed where the colour is none a browser draws. The colour is --taxmod-swatch.
   admin.js repaints the choice's patch inline (background, border). */
.taxmod-swatch { display: inline-block; width: 1em; height: 1em; vertical-align: middle; margin-right: .3em; border: 1px dashed #8c8f94; }
.taxmod-swatch.taxmod-swatch-filled { border: 1px solid #8c8f94; background: var(--taxmod-swatch); }

/* D-1643: a value's colour rings as stripes on a resistor body; each stripe's colour is --taxmod-band. */
.taxmod-bands { display: inline-block; padding: 0 .3em; border-radius: .5em; background: #e8d7b5; vertical-align: middle; }
.taxmod-band { display: inline-block; width: .45em; height: 1.1em; margin: 0 .12em; vertical-align: middle; border: 1px solid #8c8f94; background: var(--taxmod-band); }

