/* Page layout only. Every value is a Crnl token; components come from Crnl. */

.page {
  padding-block: var(--spacing-content);
  padding-inline: var(--margin-small);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-content);
}

.stack { display: flex; flex-direction: column; gap: var(--spacing-200); }
.stack-tight { display: flex; flex-direction: column; gap: var(--spacing-100); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-100); }

.cards { display: grid; gap: var(--spacing-card); }
@media (min-width: 1100px) {
  .cards-2 { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* The board: a stat table of strings, so the columns need real widths. */
.board-table { table-layout: fixed; width: max-content; --stat-table-entity-width: 160px; }
.board-table .stat-table-attr { width: 240px; text-align: start; white-space: normal; vertical-align: top; }
.board-table .stat-table-entity { vertical-align: top; }
.board-table .stat-table-row { height: auto; }
.board-table td, .board-table th { padding-block: var(--spacing-150); }
@media (max-width: 499px) {
  .board-table { --stat-table-entity-width: 112px; }
  .board-table .stat-table-attr { width: 200px; }
}

.person-link { color: inherit; text-decoration: none; }

.choice-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-100); }
.choice-row .input-field { flex: 1 1 200px; }

.people-row { display: flex; flex-wrap: wrap; gap: var(--spacing-100); align-items: end; }
.people-row .input-field { flex: 1 1 200px; }

.link-box { word-break: break-all; }

[hidden] { display: none; }

/* Review rows: on a phone the actions drop under the answer instead of squeezing it. */
@media (max-width: 499px) {
  .list-row[data-review] { flex-wrap: wrap; row-gap: var(--spacing-150); }
  .list-row[data-review] .list-row-content { flex-basis: 100%; }
  .list-row[data-review] .trailing { margin-inline-start: 0; }
}
