/* 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%;
  }
}

/* The tour of the school side ("Rundgang: So sieht es eine Lehrkraft",
   apps/statements/tour.py): the two buttons on "Für Schulen und Vereine",
   the page of the tour, and the line on the pages of the access of an
   invented case. */
.tour-entry__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.school-tour__roles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.school-tour__roles-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
}

.school-tour__roles-list a[aria-current="page"] {
  text-decoration: none;
  border-bottom: 3px solid currentColor;
}

.school-tour__list {
  margin: 1rem 0 2rem;
  padding: 0;
  list-style: none;
}

.school-tour__item {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #b9c2cf;
  border-radius: 4px;
}

.school-tour__title {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.school-tour__item p {
  margin: 0 0 0.6rem;
}

.school-tour__open {
  margin: 0;
}

.school-tour__end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.school-tour__end-actions form {
  margin: 0;
}

@media (max-width: 480px) {
  .tour-entry__buttons .tour-entry__form,
  .tour-entry__buttons .button,
  .school-tour__open .button,
  .school-tour__end-actions form,
  .school-tour__end-actions .button {
    width: 100%;
  }
}
