/* ==========================================================================
   Styles for the How Notifications Work page. One file per page, mirroring
   the page's path, so this table can be adjusted without touching any other
   page's styles.
   ========================================================================== */

/* Bell-state table - a narrow icon column and the state it represents. */
.bell-state-table table {
  table-layout: fixed;
  width: 100%;
}

/* The theme puts min-width: 5rem on every th, which fights the narrow icon column. */
.bell-state-table table th {
  min-width: 0;
}

.bell-state-table table th:nth-child(1),
.bell-state-table table td:nth-child(1) {
  width: 4.5rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  text-align: center;
}

/* Brick icons in both themes: --q-brick resolves to the same accent under the
   light and the dark scheme, so one rule covers both modes. */
.bell-state-table table td:nth-child(1) .twemoji svg {
  color: var(--q-brick);
  fill: var(--q-brick);
}

.bell-state-table table td {
  vertical-align: middle;
}

/* Panel-header table - the icon stacked above its label, and what each control
   does. */
.panel-header-table table {
  table-layout: fixed;
  width: 100%;
}

.panel-header-table table th {
  min-width: 0;
}

/* Same treatment as the bell-state table above, so the two columns read as one
   system: centred content, tight side padding. The icon stacks above its label
   (see the .twemoji rule below) and the label may wrap, so the column stays
   narrow; "Mark all read" breaks over two lines by design. */
.panel-header-table table th:nth-child(1),
.panel-header-table table td:nth-child(1) {
  width: 5.5rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  text-align: center;
}

/* Stack the icon on its own line, centred above the label. */
.panel-header-table table td:nth-child(1) .twemoji {
  display: block;
  margin: 0 auto 0.15rem;
}

/* Brick icons in both themes, same rule as the bell-state table above. */
.panel-header-table table td:nth-child(1) .twemoji svg {
  color: var(--q-brick);
  fill: var(--q-brick);
}

.panel-header-table table td {
  vertical-align: middle;
}
