/* A person's own settings (app/views/settings/show.html.erb): the page's own sections, under their headings (PageSectionComponent). A setting is a sentence that says how
   it stands and the button that changes it, the button on a line of its own at its own width, so a longer language wraps the sentence and never squeezes the button.
   Tokens and logical properties only. */

.settings-page__setting {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
  min-inline-size: 0;
}

.settings-page__setting p {
  margin-block: 0;
  overflow-wrap: anywhere;
}

/* A field and its button on one line where there is room (the calling app), the button aligned with the field's foot; on a phone the button goes under the field. */
.settings-page__inline {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--space-3);
  min-inline-size: 0;
}

/* A short answer (a link, a role, a room) needs no more than about forty characters of room, so a field is held to that measure and not stretched across the page. */
.settings-page .field .field-control,
.settings-page .field .field-select {
  max-inline-size: 36rem;
}

/* A tab's first section stands a step below the row of tabs, so its heading does not sit on the tabs' rule. */
.settings-page__tab {
  padding-block-start: var(--space-4);
}
