/* =============================================================
   NOTES + VISITS — the Visitor Notes section (list + form, the
   form reuses the contact brief's field styles from closing.css)
   and the visit counter in the footer.
   ============================================================= */

/* The whole section sits on one centred column, like Contact: no
   empty half beside a single note on wide screens. */
.notes-wrap > .section-head {
  justify-content: center;
  text-align: center;
}

.notes-intro {
  max-width: 34em;
  margin: 0 auto var(--s-6);
  color: var(--text-mid);
  font-size: var(--fs-lead);
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

/* ---- Approved notes: centred quotes on hairlines ------------------- */

.notes-list {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.note-message {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-lead);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.note-message::before {
  content: "\201C";
  color: var(--accent);
}

.note-message::after {
  content: "\201D";
  color: var(--accent);
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-1) var(--s-3);
  margin: 0;
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}

.note-name {
  color: var(--text);
}

.note-role::before,
.note-date::before {
  margin-right: var(--s-3);
  content: "·";
}

.notes-empty {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--s-5) 0;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--text-mid);
}

/* ---- Form ------------------------------------------------------------ */

.notes-form {
  margin-top: var(--s-7);
}

.notes-counter {
  align-self: flex-end;
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}

.notes-rules {
  margin: var(--s-4) 0 0;
  color: var(--text-mid);
  font-size: var(--fs-small);
}

/* The bot trap: off-screen for people, still in the form for bots. */
.notes-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Footer visit counter -------------------------------------------- */

.footer-visits {
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}

@media (max-width: 767px) {
  .footer-visits {
    order: 4;
    width: 100%;
  }
}

.notes-wrap { max-width: min(44rem, var(--page)); margin-inline: auto; }
.notes-form { margin-inline: auto; }
