/* The Q centre: only the parts the Brand Decks kit doesn't have.
   The look itself is in brand/base.css and brand/shoddy-v2/theme.css (copies: never edit them, sync again instead;
   the rules for building in it are in docs/brief.md).
   Everything here is built from the theme's --b- variables. No colours, fonts, corners or shadows of its own,
   and no spacing between a section's parts or its rows: the theme's parts carry that.
   Before adding anything, check docs/brief.md: the theme may have grown the part since. */

.q-opening { text-align: center; padding-block: var(--b-s5); }

/* A tag or two and a pencil note on one line */
.q-tags { display: flex; flex-wrap: wrap; gap: var(--b-s1) var(--b-s2); align-items: center; }
.b-head .q-tags { justify-content: center; }

/* ---------- Answer controls the kit has no part for ---------- */
/* What the two ends of a scale mean */
.q-ends { display: flex; justify-content: space-between; gap: var(--b-s2); }
/* A number box with its unit beside it */
.q-number { display: flex; align-items: center; gap: var(--b-s1); max-width: 16rem; }
.q-number .b-input { margin-top: 0; }
/* Put these in order: ruled rows, the place written in by hand, Up and Down at the end */
.q-rank { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--b-line); }
.q-rank li { display: flex; align-items: center; gap: var(--b-s2); padding: var(--b-s1) 0; border-bottom: 1px solid var(--b-line); }
.q-rank-label { flex: 1; min-width: 0; }
[data-brand] .q-rank .b-hand-num { min-width: 1.2rem; }

/* What each person answered, side by side: a name, then their answer, their note beneath */
.q-others > * + * { margin-top: var(--b-s1); }
.q-their { display: grid; grid-template-columns: minmax(4rem, max-content) minmax(0, 1fr); gap: var(--b-s1) var(--b-s2); align-items: baseline; }
.q-their-note { grid-column: 2; font-style: italic; color: var(--b-text-soft); white-space: pre-wrap; }
.q-none { color: var(--b-text-muted); }
[data-brand] .b-item blockquote { margin-inline: 0; margin-bottom: 0; white-space: pre-wrap; }
[data-brand] .b-item blockquote .b-label { display: block; font-style: normal; }

/* The count at the top of the results: how many they agree and differ on */
.q-tally { display: flex; flex-wrap: wrap; align-items: end; gap: var(--b-s2) var(--b-s4); }
.q-tally > span { display: inline-grid; justify-items: center; gap: var(--b-s1); }
