/* ---------- Public pages (layouts/public): the report form and the legal pages ---------- */

.public {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.public-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border);
  background: var(--color-surface);

  .locale-switcher {
    margin: 0;
  }
}

.public-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  font-weight: var(--weight-semibold);
  text-decoration: none;

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }
}

.public-main {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

.public-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border-top: var(--border);
  color: var(--color-text-muted);
  font-size: var(--text-sm);

  nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

/* The report kinds as big tappable cards */
.kind-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: var(--space-2);
}

.kind-choice__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kind-choice {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  height: 100%;
  padding: var(--space-3);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  font-size: var(--text-sm);
}

.kind-choice__title {
  font-weight: var(--weight-semibold);
}

.kind-choice__hint {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.kind-choice__input:checked + .kind-choice {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
  background: var(--color-primary-subtle);
}

.kind-choice__input:focus-visible + .kind-choice {
  box-shadow: var(--focus-ring);
}

/* Robots fill in every field; people never see this one (PublicReportsController) */
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Long text pages: privacy notice, accessibility statement */
.prose {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  line-height: var(--leading-relaxed, 1.6);

  h2 {
    margin-top: var(--space-4);
    font-size: var(--text-lg);
  }

  ul {
    padding-left: var(--space-5);
  }
}

.reference-box {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle);
  color: var(--color-primary-text);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  text-align: center;
}

/* A checkbox with a sentence next to it (the privacy consent) */
.check-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);

  input {
    margin-top: 0.2rem;
    accent-color: var(--color-primary);
  }
}
