/* SwissDecide — UI polish 2026-11-23 (Growth F5)
   Conservative, defensive global alignment fixes only.
   Loaded LAST in <head> on every page. No font/colour changes,
   no resets, no display:none — page-specific rules with higher
   specificity still win. */

/* Consistent content container: same max-width and side padding everywhere */
.wrap {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* Uniform section vertical rhythm */
.section {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Card/grid alignment: stretch rows so cards in a row share one height */
.two,
.grid,
.cards {
  align-items: stretch;
}
.two > .card,
.grid > .card,
.cards > .card {
  height: 100%;
  box-sizing: border-box;
}

/* Table cell padding and alignment consistency (class rules still override) */
th,
td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

/* Buttons align cleanly with surrounding inline content */
.btn {
  vertical-align: middle;
}

/* Images never overflow their container */
img {
  max-width: 100%;
  height: auto;
}

/* Mobile: tighter side padding, lighter section rhythm, denser tables */
@media (max-width: 640px) {
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
  .section {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  th,
  td {
    padding: 8px 10px;
  }
}
