/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* Lead form honeypot: off-screen so bots fill it, never seen by people. */
.lead-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* "Thank you" toast shown after a lead form is sent (see project.js). */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 6000; /* above the side request form (5000) */
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: calc(100% - 32px);
  max-width: 460px;
  padding: 20px 25px;
  background-color: #fff;
  color: #1b1b1b;
  border-left: 4px solid var(--color-accent-1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.toast.-error {
  border-left-color: #b94a48;
}

.toast__text {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
}

.toast__close {
  font-size: 22px;
  line-height: 1;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Cookie notice (includes/cookie_banner.html). Fixed, so it never shifts the page. */
.cookieBanner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 5500; /* above the request form (5000), below the toast (6000) */
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 640px;
  padding: 20px 25px;
  background-color: var(--color-dark-1);
  color: #fff;
  border-left: 4px solid var(--color-accent-1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.cookieBanner[hidden] {
  display: none;
}

.cookieBanner__text {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
}

.cookieBanner__text a {
  color: var(--color-accent-1);
  text-decoration: underline;
}

.cookieBanner__button {
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .cookieBanner {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
}

/* Legal pages (templates/pages/legal/). */
.legal {
  font-size: 16px;
  line-height: 1.7;
}

.legal h2 {
  margin-top: 45px;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
}

.legal p,
.legal ul {
  margin-bottom: 15px;
}

.legal ul {
  padding-left: 20px;
  list-style: disc;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  color: var(--color-accent-1);
  text-decoration: underline;
}

.legal__meta {
  font-size: 14px;
  opacity: 0.7;
}

.legal__note {
  padding: 15px 20px;
  border-left: 4px solid var(--color-accent-1);
  background-color: rgba(194, 159, 123, 0.1);
}

.legal__related {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.legal__table {
  overflow-x: auto;
  margin-bottom: 20px;
}

.legal__table table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.legal__table th,
.legal__table td {
  padding: 12px 15px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.legal__table th {
  font-weight: 500;
  background-color: rgba(194, 159, 123, 0.1);
}
