/* The settings page, and form controls that only the forms use: a checkbox
   with a label, and the due box with its date picker button. */

/* The settings page: a title in the bar, then a card of settings. Each is a
   checkbox and its label, with the explanation under the label. */
.page-settings {
  max-width: 40rem;
}

.bar-title {
  margin: 0 0 0 var(--space-2);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.setting {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-3);
  align-items: center;
}

.setting input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--color-accent-base);
}

.setting label {
  font-weight: var(--font-weight-medium);
}

.setting .setting-note {
  grid-column: 2;
  margin: var(--space-1) 0 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.saved {
  margin: 0;
  color: var(--color-text-secondary);
}

.settings-actions {
  padding: 0;
}

/* A checkbox with its label beside it, in a form. */
.field-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.field-check input {
  width: 1.25rem;
  min-height: 0;
  height: 1.25rem;
  padding: 0;
  accent-color: var(--color-accent-base);
}

/* The due box with a button that opens the browser's date picker. The picker
   belongs to a hidden date input at the button, so it opens beside it. */
.field-row {
  position: relative;
  display: flex;
  gap: var(--space-2);
}

.field-row input:not(.date-proxy) {
  flex: 1;
  min-width: 0;
}

.pick-date {
  display: none;
}

.js .pick-date {
  display: inline-flex;
}

.field .date-proxy {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  min-height: 0;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* Sign-up and verify pages: a line of small print under a field or button,
   a message that is good news rather than an error, and a button that reads
   as a link ("Send a new code"). */
.form-note {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.notice-box {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-success-base);
  border-radius: var(--radius-md);
  background: var(--color-success-subtle);
  font-size: var(--font-size-sm);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-accent-base);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover {
  color: var(--color-accent-hover);
}

/* The footer on the public pages: the copyright line and the legal links. */
.site-footer {
  margin-top: var(--space-7);
  padding: var(--space-5) var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.site-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  max-width: 72rem;
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: var(--space-4);
}

.site-footer a {
  color: inherit;
}

/* Privacy and terms: a readable column of text. */
.page-prose {
  max-width: 44rem;
  margin-top: var(--space-6);
}

.prose {
  display: grid;
  gap: var(--space-3);
}

.prose h2 {
  margin-top: var(--space-4);
}

.prose p {
  margin: 0;
  color: var(--color-text-secondary);
}

/* A link in small print takes the page's colour instead of the browser's
   default blue (which is hard to read on dark). */
.form-note a {
  color: var(--color-text-primary);
}

.prose ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-left: var(--space-5);
  color: var(--color-text-secondary);
}

.prose a {
  color: var(--color-text-primary);
}

.prose .prose-date {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}
