/* Outside production only: the notice every page carries and the messages
   of the test system (apps/core/testmode.py). The base templates load this
   file only when the notice is shown. Own colours, because it sits on three
   surfaces with different palettes. Strict CSP: nothing inline. */

.testbar {
  margin: 0;
  padding: 0.5rem max(16px, env(safe-area-inset-right, 0px)) 0.5rem
    max(16px, env(safe-area-inset-left, 0px));
  background: #ffe9a8;
  color: #2b2100; /* 13.6:1 on the bar */
  border-bottom: 2px solid #8a6400;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
}

.testbar__text {
  max-width: 60rem;
  margin: 0 auto;
}

.testbar a {
  color: #2b2100;
  font-weight: 600;
  text-decoration: underline;
}

.testbar a:focus-visible {
  outline: 3px solid #1b4f9c;
  outline-offset: 2px;
}

.testinbox {
  max-width: none;
  margin: 0 0 1.5rem;
  background: #fff8e1;
  color: #2b2100; /* 15.2:1 on the box */
  border: 2px dashed #8a6400;
  border-radius: 8px;
}

.testinbox__summary {
  padding: 0.7rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.testinbox__summary:focus-visible {
  outline: 3px solid #1b4f9c;
  outline-offset: 2px;
}

.testinbox__hint {
  max-width: none;
  margin: 0;
  padding: 0 1rem 0.5rem;
}

.testinbox__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.testinbox__item {
  margin: 0;
  padding: 0.7rem 1rem;
  border-top: 1px solid #d9c88f;
}

.testinbox__meta {
  max-width: none;
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.testinbox__body {
  max-width: none;
  margin: 0;
  overflow-wrap: anywhere;
}

.testinbox__body a {
  color: #123f7a; /* 9.2:1 on the box */
  text-decoration: underline;
}

.testhint {
  max-width: none;
  margin: 0 0 1rem;
  padding: 0.7rem 1rem;
  background: #fff8e1;
  color: #2b2100;
  border: 2px dashed #8a6400;
  border-radius: 8px;
}

/* The line on every page of an invented family (apps/intake/invented.py;
   the family of a tour: apps/intake/tour.py), below the notice of the test
   system. */
.testbar--family {
  background: #fff8e1;
  border-bottom-width: 1px;
}

/* The tour: the entry on the start of the portal and on the sign-in page,
   and the box on the overview of the family. */
.tour-entry,
.tour-box {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
}

.tour-entry__title,
.tour-box__title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: #2b2100;
}

.tour-entry p,
.tour-box p {
  max-width: none;
  margin: 0 0 0.7rem;
}

.tour-entry > :last-child,
.tour-box > :last-child {
  margin-bottom: 0;
}

.tour-entry__form {
  margin: 0;
}

.tour-box__status {
  font-weight: 600;
}

.tour-box a,
.tour-entry a {
  color: #123f7a; /* 9.2:1 on the box */
  font-weight: 600;
  text-decoration: underline;
  display: inline-block;
  min-height: 1.75rem;
}

@media (max-width: 480px) {
  .tour-entry__form .button {
    width: 100%;
  }
}
