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