/* Children's portal (spec 12.2).

   Tone: warm, short, friendly. Large type, one thought per screen, big
   buttons, calm colours, no warning red, nothing that looks like an
   authority. Strict CSP (style-src 'self'): no inline styles, no script.
   Works from 320 px; checked at 390 px and 1280 px. */

:root {
  --ink: #1f2933;
  --muted: #4a5561; /* 7.4:1 on the background */
  --bg: #fbf7f0;
  --card: #ffffff;
  --sea: #24617f; /* 6.4:1 with white text */
  --sea-deep: #184a63;
  --sea-soft: #e3eff4;
  --sun: #f4c95d;
  --sun-soft: #fff4d6;
  --leaf: #2f6b45; /* 6.3:1 on white */
  --leaf-soft: #e4f2e7;
  --plum: #6b3f69; /* for important notes instead of red */
  --plum-soft: #f5e9f4;
  --line: #ddd5c8;
  --line-strong: #6f7782; /* 4.6:1: borders of inputs */
  --focus: #1b4f9c;
  --radius: 18px;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --round: "Source Serif 4", Georgia, serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sea);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sea-deep);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 0.9em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--card);
  padding: 0.6rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: var(--gutter);
}

.muted {
  color: var(--muted);
}

.lead {
  font-size: 1.25rem;
}

/* Header ------------------------------------------------------------------------ */

.top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.top__inner,
.langs,
.progress,
.main,
.foot__inner {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.7rem;
  padding-bottom: 0.4rem;
}

.top__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  min-width: 0;
}

.top__icon {
  border-radius: 12px;
  flex: none;
}

.top__name {
  overflow-wrap: anywhere;
}

.top__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.inline-form {
  display: inline;
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--sea);
  background: var(--card);
  color: var(--sea);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.pill--help {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
}

.pill--pause {
  background: var(--sea-soft);
}

/* Read aloud (spec 5.1): hidden until the device offers a local voice. */
.pill[hidden] {
  display: none;
}

.pill--read[aria-pressed="true"] {
  background: var(--sea);
  color: var(--card);
}

.langs {
  padding-bottom: 0.5rem;
}

.langs__set {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.langs__button {
  font: inherit;
  font-size: 0.95rem;
  background: none;
  border: 0;
  color: var(--sea);
  padding: 0.35rem 0.5rem;
  min-height: 2.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.langs__button[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

/* Progress of the report flow --------------------------------------------------- */

.progress {
  padding-top: 0.9rem;
}

.progress__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.3rem;
}

.progress__step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.progress__dot {
  display: block;
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--line);
}

.progress__step--done .progress__dot {
  background: var(--leaf);
}

.progress__step--current .progress__dot {
  background: var(--sea);
}

.progress__step--current {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 560px) {
  .progress__label {
    display: none;
  }

  .progress__step--current .progress__label {
    display: block;
    position: absolute;
    left: -999px;
  }
}

/* Main ------------------------------------------------------------------------------ */

.main {
  flex: 1 0 auto;
  padding-top: 1.4rem;
  padding-bottom: 2.5rem;
}

.main:focus {
  outline: none;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 0 0 1.1rem;
}

.card__title {
  font-size: 1.25rem;
}

.card--soft {
  background: var(--sea-soft);
  border-color: transparent;
}

.card--done {
  background: var(--leaf-soft);
  border-color: transparent;
}

.card--urgent {
  background: var(--sun-soft);
  border: 2px solid var(--sun);
}

.card--yes {
  border-top: 6px solid var(--sea);
}

.card--no {
  border-top: 6px solid var(--line-strong);
}

.prose p:last-child {
  margin-bottom: 0;
}

.two-cols {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .two-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.list {
  margin: 0;
  padding-left: 1.2rem;
}

.list li {
  margin-bottom: 0.4rem;
}

/* A list of buttons or links without bullets. */
.list--plain {
  list-style: none;
  padding-left: 0;
}

/* A person the family named (decision 29): who, and the button that takes
   her or him back. */
.named {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}

.named:first-child {
  border-top: 0;
}

.named__who {
  min-width: 0;
  overflow-wrap: anywhere;
}

.card--done > :last-child {
  margin-bottom: 0;
}

/* Messages ------------------------------------------------------------------------ */

.notes {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.note {
  border-radius: 14px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--sea-soft);
}

.note--success {
  background: var(--leaf-soft);
}

.note--error,
.note--warning {
  background: var(--plum-soft);
  color: var(--plum);
  font-weight: 600;
}

.notice {
  background: var(--sun-soft);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
}

.notice--ai {
  font-weight: 600;
}

/* A notice of several paragraphs (the withdrawn consent on the page of a
   report). */
.notice--told > :last-child {
  margin-bottom: 0;
}

/* Buttons ------------------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin: 1.2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--sea);
  background: var(--sea);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.button:hover {
  background: var(--sea-deep);
  border-color: var(--sea-deep);
  color: #fff;
}

.button--big {
  min-height: 3.75rem;
  padding: 0.8rem 2rem;
  font-size: 1.25rem;
}

.button--quiet {
  background: var(--card);
  color: var(--sea);
}

.button--quiet:hover {
  background: var(--sea-soft);
  color: var(--sea-deep);
}

/* A button with a small second line: both ways keep the same weight (the
   entry to the preview of the chat on a test system). */
.button--lines {
  flex-direction: column;
  gap: 0.1rem;
  padding-block: 0.4rem;
}

.button__sub {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.2;
}

.button--small {
  min-height: 2.5rem;
  padding: 0.3rem 0.9rem;
  font-size: 1rem;
}

@media (max-width: 480px) {
  .actions .button,
  .form > .button {
    width: 100%;
  }
}

/* Start page ---------------------------------------------------------------------- */

.hero {
  padding: 0.5rem 0 1rem;
}

.hero__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem);
}

.hero__lead {
  font-size: 1.3rem;
}

/* First view of the start (spec 12.2): the picture, the headline for the
   child, three reassurances and the two ways. One column on a phone, the
   picture first; from 760 px the picture stands next to the text and the
   ways run below over the whole width. */
.hero--start {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.hero--start .hero__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.2rem);
}

.hero--start .hero__lead {
  margin-bottom: 0.8rem;
}

/* On a phone the picture is cut to 16:9 (speech bubble, both faces and the
   hands stay), so that the main button is in the first view. */
.hero__picture {
  order: -1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 10%;
  border-radius: var(--radius);
}

.assure {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.assure__item {
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-size: 1rem;
  font-weight: 600;
}

/* The two ways: buttons of the same size, side by side where there is room.
   auto-fill keeps a single button at the width of one way. */
.hero__buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0.7rem;
}

.hero__note {
  margin-top: 0.8rem;
}

.hero__note p {
  font-size: 1rem;
  margin-bottom: 0.4em;
}

.hero__return {
  margin: 0.6rem 0 0;
}

.hero__return-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
}

/* Where it works today: a small line below the ways. */
.hero__region {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}

@media (min-width: 760px) {
  .hero--start {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 1.5rem;
    align-items: center;
  }

  .hero__picture {
    order: 0;
    aspect-ratio: auto;
  }

  .hero__ways {
    grid-column: 1 / -1;
  }
}

/* "So läuft es ab" on the start: four numbered steps. */
.course {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 0.5rem 0 1.1rem;
}

.course__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: course;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .course__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.5rem;
  }
}

.course__step {
  counter-increment: course;
  position: relative;
  padding-left: 3.4rem;
  min-height: 2.6rem;
}

.course__step::before {
  content: counter(course);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course__name {
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
}

.course__step p {
  margin: 0;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

@media (min-width: 760px) {
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 1rem;
  min-height: 8.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.tile:hover {
  border-color: var(--sea);
  color: var(--ink);
}

.tile--help {
  background: var(--sun-soft);
  border-color: var(--sun);
}

.tile__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--sea-soft);
  position: relative;
}

.tile__icon::after {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border-radius: 50%;
  background: var(--sea);
}

.tile__icon--bullying::after {
  border-radius: 4px;
  background: var(--sun);
}

.tile__icon--how::after {
  inset: 0.9rem 0.6rem;
  border-radius: 999px;
  background: var(--leaf);
}

.tile__icon--phone {
  background: var(--card);
}

.tile__icon--phone::after {
  background: var(--sun);
  inset: 0.7rem;
}

.emergency {
  font-weight: 600;
  background: var(--sun-soft);
  border-radius: 14px;
  padding: 0.8rem 1rem;
}

.langcheck__form {
  margin: 0 0 0.6rem;
}

/* Age band tabs -------------------------------------------------------------------- */

.bands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.bands__label {
  font-weight: 600;
  margin-right: 0.3rem;
}

.bands__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--card);
  text-decoration: none;
}

.bands__link[aria-current="true"] {
  border-color: var(--sea);
  background: var(--sea);
  color: #fff;
}

/* Picture story ------------------------------------------------------------------------ */

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

.story__step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.story__title {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.story__step p {
  margin: 0;
}

.story__pic {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--sea-soft);
  position: relative;
}

.story__pic::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 50%;
  background: var(--sea);
}

.story__pic--2::after {
  border-radius: 6px;
  background: var(--leaf);
}

.story__pic--3 {
  background: var(--sun-soft);
}

.story__pic--3::after {
  background: var(--sun);
  inset: 1rem 0.7rem;
  border-radius: 999px;
}

.story__pic--4::after {
  inset: 0.9rem;
  border-radius: 4px 50% 50% 50%;
}

.story__pic--5 {
  background: var(--leaf-soft);
}

.story__pic--5::after {
  background: var(--leaf);
}

/* Helplines ----------------------------------------------------------------------------- */

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

.helpline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.helpline:last-child {
  border-bottom: 0;
}

.helpline__number {
  font-size: 1.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.helpline--first .helpline__number {
  font-size: 2.2rem;
}

.urgent__text {
  font-weight: 600;
  font-size: 1.25rem;
}

.urgent__number {
  display: inline-block;
  font-size: 3rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

/* Forms ------------------------------------------------------------------------------------ */

.form .field,
.form .choices,
.form .check {
  margin-bottom: 1.2rem;
}

.field__label,
.choices__legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.field__help {
  color: var(--muted);
  font-size: 1rem;
  margin: -0.2rem 0 0.4rem;
}

.field-error {
  color: var(--plum);
  font-weight: 600;
  margin: 0 0 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  min-height: 3.25rem;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input[type="file"] {
  font: inherit;
  font-size: 1rem;
  max-width: 100%;
}

input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  min-height: 3rem;
  margin-right: 0.8rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--sea);
  background: var(--card);
  color: var(--sea);
  cursor: pointer;
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--plum);
}

.choices {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.card.choices {
  padding: 1.1rem;
}

/* A legend sits on the upper edge of its fieldset. Floated, it stands
   inside the card like a heading ("Wie geht es dir heute?"). */
.card.choices .choices__legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 0.7rem;
}

.card.choices .choices__list {
  clear: both;
}

.choices__list {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 600px) {
  .choices--2 .choices__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choices--3 .choices__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .choices--4 .choices__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .choices--5 .choices__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.55rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  cursor: pointer;
}

.choice:hover {
  border-color: var(--sea);
}

.choice:has(input:checked) {
  border-color: var(--sea);
  background: var(--sea-soft);
  font-weight: 600;
}

.choice input {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  accent-color: var(--sea);
  margin: 0;
}

.choice--block .choice__label {
  display: flex;
  flex-direction: column;
}

.choices--error,
.map-row--error {
  border-color: var(--plum);
}

.check {
  padding: 1rem;
  border-radius: 14px;
  background: var(--bg);
}

.check--own {
  background: var(--sun-soft);
}

.check--error {
  outline: 2px solid var(--plum);
}

.check__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.check__label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-height: 2.75rem;
  cursor: pointer;
}

.check__label input {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  margin-top: 0.15rem;
  accent-color: var(--sea);
}

.search__row {
  display: flex;
  gap: 0.5rem;
}

.search__row input {
  flex: 1 1 auto;
  min-width: 0;
}

/* Interview ----------------------------------------------------------------------------------- */

.meter {
  margin-bottom: 1rem;
}

.meter__label {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.meter__bar {
  appearance: none;
  width: 100%;
  height: 0.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.meter__bar::-webkit-progress-bar {
  background: var(--line);
  border-radius: 999px;
}

.meter__bar::-webkit-progress-value {
  background: var(--leaf);
  border-radius: 999px;
}

.meter__bar::-moz-progress-bar {
  background: var(--leaf);
  border-radius: 999px;
}

.ask {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.bubble {
  position: relative;
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.75rem);
  line-height: 1.35;
  background: var(--sea-soft);
  border-radius: 22px 22px 22px 6px;
  padding: 1rem 1.2rem;
  margin: 0 0 1.3rem;
}

.bubble--small {
  font-size: 1.25rem;
}

.bubble-card {
  font-size: 1.2rem;
  background: var(--sea-soft);
  border-color: transparent;
}

.quote {
  border-left: 4px solid var(--sun);
  padding-left: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.aspects {
  border-top: 1px dashed var(--line);
  padding-top: 1rem;
}

.interview__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Reveal follow-up fields only when they apply (no script). Without :has()
   every field stays visible and the labels say when to answer. */
@supports selector(:has(*)) {
  .item-more,
  .map-more,
  .help-more {
    display: none;
  }

  .item-form:has(input[name$="frequency"]:checked:not([value="0"])) .item-more,
  .map-row:has(input[name$="confirm"][value="yes"]:checked) .map-more,
  .help-form:has(input[name="asked"][value="yes"]:checked) .help-more {
    display: block;
  }

  .map-row:has(input[name$="confirm"][value="yes"]:checked) .map-more {
    padding-top: 0.6rem;
  }
}

/* Summary, status, files ---------------------------------------------------------------------- */

.facts,
.files,
.consents {
  list-style: none;
  margin: 0;
  padding: 0;
}

.facts__item,
.files__item,
.consents__item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.facts__item:last-child,
.files__item:last-child,
.consents__item:last-child {
  border-bottom: 0;
}

.facts__text {
  font-weight: 600;
  flex: 1 1 18rem;
}

.facts__meta {
  color: var(--muted);
}

.story-text {
  white-space: normal;
  overflow-wrap: anywhere;
}

.hash {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.status__now {
  font-size: 1.25rem;
  font-weight: 600;
}

.case-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.case-number--big {
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.done {
  text-align: center;
  padding: 2rem 1.25rem;
}

.done__title {
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.5rem);
}

.pairs {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: 0.4rem 1rem;
  margin: 0;
}

.pairs dt {
  font-weight: 600;
}

.pairs dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.tag {
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.05rem 0.6rem;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-weight: 600;
}

.delete {
  margin-top: 1rem;
}

/* Conversation by WhatsApp, to try in the browser (test systems only,
   templates/intake/chat_preview.html). A look of its own, not the look of
   WhatsApp: the colours of the portal, ECPO on the left, the family on the
   right, the options of a message as buttons below it. */

.chat {
  margin: 0 0 1.2rem;
}

.chat__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chat__item {
  display: grid;
  justify-items: start;
  min-width: 0;
  /* The anchor "neu" leaves room above the newest message. */
  scroll-margin-top: 1rem;
}

.chat__item--family {
  justify-items: end;
}

.chat__item--note {
  justify-items: center;
}

.chat__who {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.chat__message {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  min-width: 0;
  max-width: min(100%, 36rem);
}

.chat__bubble {
  margin: 0;
  max-width: min(100%, 36rem);
  padding: 0.7rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 6px;
  overflow-wrap: anywhere;
}

.chat__item--family .chat__bubble {
  background: var(--sea-soft);
  border-color: transparent;
  border-radius: 18px 18px 6px 18px;
}

.chat__note {
  margin: 0;
  max-width: 36rem;
  padding: 0.6rem 0.9rem;
  background: var(--sun-soft);
  border-radius: 14px;
  font-size: 1rem;
}

.chat__options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat__option {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  background: var(--card);
  color: var(--sea);
  border: 2px solid var(--sea);
  border-radius: 14px;
  font: inherit;
  font-weight: 600;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.chat__option:hover {
  background: var(--sea-soft);
  color: var(--sea-deep);
}

/* Options of an earlier message: what could be chosen then, no buttons. */
.chat__option--past,
.chat__option--past:hover {
  min-height: 0;
  padding: 0.2rem 0.8rem;
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 400;
  cursor: default;
}

.chat__more {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

.chat__compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: end;
  margin: 0 0 1rem;
}

.chat__compose .field__label {
  grid-column: 1 / -1;
  margin: 0;
}

.chat__compose textarea {
  min-height: 3.25rem;
}

.chat__restart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.chat__restart p {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .chat__list {
    padding: 0.8rem;
  }

  .chat__compose {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat__compose .button,
  .chat__restart .button {
    width: 100%;
  }
}

/* Footer ---------------------------------------------------------------------------------------- */

.foot {
  background: var(--card);
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

.foot__inner {
  padding-top: 1.4rem;
  padding-bottom: 1.6rem;
}

.foot__links {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
}

.foot__links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.foot__notice {
  color: var(--muted);
}

.foot__notice--strong {
  color: var(--ink);
  font-weight: 600;
}

.foot__operator {
  color: var(--muted);
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .choice,
  .tile {
    transition:
      background-color 0.15s ease,
      border-color 0.15s ease;
  }
}

/* The area of the family after the report (spec 12.2): the pages below one
   report (templates/intake/_report_nav.html, messages.html). */

.kicker {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.report-nav {
  margin: 0 0 1.3rem;
}

.report-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.report-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.3rem 1.1rem;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.report-nav__link:hover {
  background: var(--sea-soft);
  color: var(--ink);
}

.report-nav__link[aria-current="page"] {
  background: var(--sea);
  border-color: var(--sea);
  color: #fff;
}

/* Something new waits on that page; the words are in the hidden text. */
.report-nav__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--plum);
}

.report-nav__link[aria-current="page"] .report-nav__dot {
  background: var(--sun);
}

/* What somebody wrote: the family, or ECPO. */
.said {
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.9rem;
  border-left: 4px solid var(--line-strong);
  border-radius: 0 14px 14px 0;
  background: var(--bg);
  overflow-wrap: anywhere;
}

.said--ecpo {
  border-left-color: var(--sea);
  background: var(--sea-soft);
}

.card--urgent .said {
  background: var(--card);
}

.card--urgent .list {
  margin-bottom: 1.2rem;
}

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

.thread__item > :last-child {
  margin-bottom: 0;
}

.thread__who {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.sent {
  list-style: none;
  padding-block: 0.4rem;
}

.sent__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.sent__item:last-child {
  border-bottom: 0;
}

.sent__date {
  min-width: 7.5rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sent__title {
  flex: 1 1 14rem;
  font-weight: 600;
}

/* The way a message took: "Per E-Mail", "Per SMS", "Per WhatsApp". */
.way {
  display: inline-block;
  padding: 0.05rem 0.6rem;
  border-radius: 999px;
  background: var(--sea-soft);
  color: var(--sea-deep);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.way--whatsapp {
  background: var(--leaf-soft);
  color: var(--leaf);
}

.way--sms {
  background: var(--sun-soft);
  color: var(--ink);
}

/* "Ergebnis" and "Dokumente" (templates/intake/result*.html, documents.html).
   An issued document on a page: the body of the letter itself
   (templates/letters/<language>/, block body) in the look of the portal.
   The class names inside .issued__body are the ones of the letters. */

.issued {
  border-top: 6px solid var(--sea);
}

.issued__meta {
  font-size: 1rem;
  color: var(--muted);
}

.issued__body {
  overflow-wrap: anywhere;
}

.issued__body > :last-child,
.issued__body .sec > :last-child {
  margin-bottom: 0;
}

.issued__body .kids {
  font-size: 1.3rem;
}

.issued__body .sec {
  margin: 0 0 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.issued__body .sec__title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 1.2rem;
}

.issued__body .kids .sec__title {
  font-size: 1.35rem;
}

.issued__body .sec__num {
  flex: none;
  min-width: 1.9rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--sea-soft);
  color: var(--sea-deep);
  font-size: 1rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.issued__body .sub {
  margin: 1.1rem 0 0.4rem;
  font-weight: 600;
}

.issued__body .table__note,
.issued__body .placeholder {
  font-size: 1rem;
  color: var(--muted);
}

.issued__body .stage {
  font-size: 1.25rem;
  font-weight: 600;
}

.issued__body .tnum {
  font-variant-numeric: tabular-nums;
}

.issued__body .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
}

.issued__body .sep {
  margin-inline: 0.35rem;
}

.issued__body ul {
  margin: 0 0 0.9em;
  padding-left: 1.2rem;
}

.issued__body li {
  margin-bottom: 0.4rem;
}

/* Statements word for word. */
.issued__body .quote {
  margin: 0 0 0.9rem;
  padding: 0.6rem 0.9rem;
  border-left: 4px solid var(--line-strong);
  border-radius: 0 14px 14px 0;
  background: var(--bg);
  color: var(--ink);
  font-style: normal;
}

.issued__body .quote p {
  margin: 0;
}

.issued__body .table {
  width: 100%;
  margin: 0 0 0.9rem;
  border-collapse: collapse;
}

.issued__body .table th,
.issued__body .table td {
  padding: 0.45rem 0.6rem 0.45rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.issued__body .table--facts td:first-child {
  width: 45%;
  color: var(--muted);
}

/* The criteria, one below the other: letter, name and result in a row,
   the basis below. The same at every width, so nothing scrolls sideways. */
.issued__body .table--criteria,
.issued__body .table--criteria tbody {
  display: block;
}

.issued__body .table--criteria thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.issued__body .table--criteria tr {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  gap: 0.3rem 0.6rem;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.issued__body .table--criteria th,
.issued__body .table--criteria td {
  padding: 0;
  border: 0;
}

.issued__body .table--criteria th,
.issued__body .table--criteria th + td {
  font-weight: 600;
}

.issued__body .table--criteria td:last-child {
  grid-column: 1 / -1;
}

.issued__body .state {
  padding: 0.05rem 0.6rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.issued__body .state--met {
  background: var(--sea-soft);
  border-color: var(--sea);
  color: var(--sea-deep);
}

.issued__body .state--untestable {
  background: var(--sun-soft);
  border-color: var(--sun);
}

/* The mandatory sentence (spec 13.1), in a document and on its own. */
.mandatory {
  margin: 1.2rem 0 0;
  padding: 0.7rem 0.9rem;
  border-left: 4px solid var(--sun);
  background: var(--sun-soft);
  border-radius: 0 14px 14px 0;
  font-weight: 600;
}

/* Who receives the same result. */
.same {
  padding: 0 0.2rem;
  color: var(--muted);
}

/* The full text is open: until when, and the button that closes it. */
.open-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.open-note p {
  margin: 0;
  flex: 1 1 16rem;
}

.open-note .button--small {
  min-height: 2.75rem;
}

/* Documents and evidence, one card each. */
.docs {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.docs__item {
  margin-bottom: 0.7rem;
}

.docs__item > :last-child {
  margin-bottom: 0;
}

.docs__title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.docs__meta {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.docs__code {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.docs__code-label {
  font-weight: 600;
}

.docs__get {
  min-height: 2.75rem;
}

/* Not there yet: quieter, with the step after which it comes. */
.docs__item--later {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-strong);
}

.docs__item--later .docs__title {
  color: var(--muted);
}

.tag--own {
  background: var(--sea-soft);
  color: var(--sea-deep);
}

/* A supplement after the report: the evidence handed in with it. */
.supplement__with {
  margin: 0 0 0.3rem;
  font-weight: 600;
}

.thread__item .list .tag {
  margin-left: 0.3rem;
}

/* "Klasse einladen": the ready text, the day it is open until and the QR
   code of the link (templates/intake/invite.html). */
.deadline {
  display: inline-block;
  margin: 0 0 1.2rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: var(--sun-soft);
  font-weight: 600;
}

.invite__text {
  display: block;
  width: 100%;
  margin: 0 0 0.4rem;
  background: var(--bg);
  resize: vertical;
  /* Where the browser can, the field is as tall as its text. */
  field-sizing: content;
}

.invite__copied {
  min-height: 1.6rem;
  margin: -0.4rem 0 0.6rem;
  color: var(--leaf);
  font-weight: 600;
}

.invite__copied:empty {
  min-height: 0;
  margin: 0;
}

/* Dark on white with a quiet zone, whatever the page around it looks like. */
.qr {
  width: min(100%, 15rem);
  margin: 0 0 1rem;
  padding: 0.5rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #000;
  line-height: 0;
}

.qr__code {
  display: block;
  width: 100%;
  height: auto;
}

.invite__link {
  margin: 0;
}

.invite__url {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

/* "Wege": the three ways for notices, each with the contact it uses
   (templates/intake/ways.html). */
.ways {
  border: 0;
  margin: 0 0 1.2rem;
  padding: 0;
  min-width: 0;
}

.ways legend {
  padding: 0;
  margin-bottom: 0.7rem;
  line-height: 1.25;
  font-weight: 600;
}

.ways__option {
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.ways__option:has(input:checked) {
  border-color: var(--sea);
  background: var(--sea-soft);
}

/* A way the account cannot choose yet: quieter, with the reason. */
.ways__option--off {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}

.ways__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  cursor: pointer;
}

.ways__option--off .ways__label {
  cursor: default;
  color: var(--muted);
}

.ways__name {
  font-weight: 600;
}

.ways__note {
  margin: 0 0 0.2rem 2.2rem;
  overflow-wrap: anywhere;
}

/* The contact and the hint about WhatsApp each on a line of their own;
   the mark "gewählt" stands next to the name of the way. */
.ways__contact,
.ways__hint {
  display: block;
}

.ways__hint {
  font-size: 0.95rem;
}

.ways__chosen {
  margin-left: auto;
}

.ways__label input {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  accent-color: var(--sea);
  margin: 0;
}

/* Three answers for the parent before the consent
   (templates/intake/_before_consent.html). */
.before__question {
  margin: 1.1rem 0 0.3rem;
  font-size: 1.1rem;
}

.before > :last-child {
  margin-bottom: 0;
}

/* "Meine Daten": the way to the page that confirms a withdrawal, and the
   periods on that page (templates/intake/my_data.html, withdraw.html). */
.consents__withdraw {
  min-height: 2.75rem;
}

.withdraw__periods {
  margin: 0.9rem 0 0.3rem;
  font-weight: 600;
}

.requests__title {
  margin-top: 1.5rem;
}

/* The sentence about drafts below the form of the requests. */
.requests__draft {
  margin-top: 1rem;
}

/* "Meine Meldungen" and "Eine Meldung" (templates/intake/dashboard.html,
   status.html): what is due, one card per report, the line of progress in
   five stations and the course of a report with dates. One filled button
   per page; every other way is an outlined button or a link. */

.now > :last-child,
.now .actions:last-child {
  margin-bottom: 0;
}

.now__none {
  font-size: 1.25rem;
  font-weight: 600;
}

.now__next {
  color: var(--muted);
}

/* What the family has to do, the most urgent first. */
.todo {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
}

.todo__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.2rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--sun);
}

.todo__item:first-child {
  border-top: 0;
  padding-top: 0.1rem;
}

.todo__item:last-child {
  padding-bottom: 0;
}

.todo__text {
  flex: 1 1 18rem;
  min-width: 0;
}

.todo__text p {
  margin: 0 0 0.2rem;
}

.todo__title {
  font-size: 1.2rem;
  font-weight: 600;
}

.todo__for {
  font-size: 1rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.todo__do {
  flex: 0 0 auto;
  margin: 0;
}

@media (max-width: 560px) {
  .todo__do,
  .todo__do .button {
    width: 100%;
  }
}

/* One card per report. */
.report-card__head {
  margin-bottom: 0.7rem;
}

.report-card__head .card__title {
  margin-bottom: 0.1rem;
}

.report-card__head p {
  margin: 0;
}

.report-card__actions {
  margin-bottom: 0;
}

.report-card--draft {
  border-style: dashed;
  border-color: var(--line-strong);
}

/* A quiet way next to the button of a card or below a step. */
.more {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.2rem;
  font-weight: 600;
}

/* Five stations. The state of each is also said in words (hidden text);
   on a narrow screen the labels are not shown and a line names the
   current station. */
.stations {
  margin: 1rem 0;
}

.stations__list {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stations__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--muted);
  text-align: center;
}

.stations__bar {
  display: block;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--line);
}

.stations__item--done .stations__bar {
  background: var(--leaf);
}

.stations__item--now .stations__bar {
  background: var(--sea);
}

.stations__item--now {
  color: var(--ink);
  font-weight: 600;
}

.stations__item--skipped .stations__bar {
  background: transparent;
  border: 1px dashed var(--line-strong);
}

.stations__now {
  display: none;
  margin: 0.45rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .stations__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .stations__now {
    display: block;
  }
}

/* The course of a report with dates. */
.timeline {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}

.timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: 0 0.9rem;
  padding-bottom: 1.3rem;
}

.timeline__step::before {
  content: "";
  position: absolute;
  left: calc(0.85rem - 1px);
  top: 1.9rem;
  bottom: 0;
  width: 2px;
  background: var(--line-strong);
}

.timeline__step--done::before {
  background: var(--leaf);
}

.timeline__step:last-child {
  padding-bottom: 0;
}

.timeline__step:last-child::before {
  display: none;
}

.timeline__mark {
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.05rem;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
}

.timeline__step--done .timeline__mark {
  border-color: var(--leaf);
  background: var(--leaf);
}

/* A tick, drawn with two borders. */
.timeline__step--done .timeline__mark::after {
  content: "";
  display: block;
  width: 0.42rem;
  height: 0.8rem;
  margin: 0.12rem auto 0;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.timeline__step--now .timeline__mark {
  border-color: var(--sea);
  background: var(--sea);
  box-shadow: 0 0 0 4px var(--sea-soft);
}

.timeline__body > :last-child {
  margin-bottom: 0;
}

.timeline__body p {
  margin-bottom: 0.5rem;
}

.timeline__title {
  margin: 0 0 0.15rem;
  font-size: 1.2rem;
}

.timeline__when {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.timeline__step--now .timeline__when {
  color: var(--ink);
  font-weight: 600;
}

.tag--now {
  background: var(--sea);
  color: #fff;
}

.tag--later {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line-strong);
}

.foryou > :last-child,
.who > :last-child {
  margin-bottom: 0;
}

/* The case number in the heading of a report stays in one piece. */
h1 .case-number {
  white-space: nowrap;
}

.end-note {
  margin-top: 1.4rem;
  font-size: 1rem;
}

/* An account without a report. */
.empty {
  text-align: center;
}

.empty > :last-child {
  margin-bottom: 0;
}

.empty__picture {
  display: block;
  width: min(100%, 24rem);
  margin: 0 auto 1rem;
  border-radius: var(--radius);
}

/* The way back from a report to the overview, above its pages. */
.report-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

/* An arrow to the left, drawn with two borders. */
.report-nav__back::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}

@media (max-width: 560px) {
  .report-nav__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .report-nav__link {
    width: 100%;
    justify-content: center;
    padding-inline: 0.5rem;
    text-align: center;
  }
}

/* A block that folds (details and summary): the consents of one report on
   "Meine Daten", the check code of a document. The summary is a touch
   target of its own. */
.fold__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.7rem;
  min-height: 2.75rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.fold__summary::-webkit-details-marker {
  display: none;
}

.fold__summary::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.2rem;
  border-right: 2px solid var(--sea);
  border-bottom: 2px solid var(--sea);
  transform: rotate(-45deg);
}

.fold[open] > .fold__summary::before {
  transform: rotate(45deg);
}

.fold__summary .muted {
  font-weight: 400;
}

.fold__title {
  font-size: 1.15rem;
}

.fold__summary--small {
  font-weight: 400;
  color: var(--sea);
  text-decoration: underline;
}

.fold > .consents {
  margin-top: 0.4rem;
}

.docs__code p {
  margin: 0.2rem 0 0;
}

/* "Meine Daten": the name of a consent takes the line, the date stands
   below it; three links at the top lead to the parts of the page. */
.consents__name {
  flex: 1 1 100%;
  font-weight: 600;
}

.consents__given {
  flex: 1 1 14rem;
}

.jump__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.2rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.jump__list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
