/* Site-wide chrome that sits outside the per-page markup: the
   skip-to-content link and the legal bar rendered by Layout.astro. */

/* --- Skip to content -------------------------------------------------- */
/* Off-screen until focused, so it never affects the visual layout. */
.skip-link {
  background-color: var(--color-black, rgb(0, 0, 0));
  border-radius: 0 0 8px 0;
  color: var(--color-white, rgb(255, 255, 255));
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  left: 0;
  padding: 12px 20px;
  position: fixed;
  text-decoration: none;
  top: 0;
  transform: translateY(-120%);
  z-index: 10000;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* --- Legal bar -------------------------------------------------------- */
/* Appended below each page's own footer. Neutral and low-contrast so it
   reads as site chrome rather than competing with the page footer. */
.legal-bar {
  background-color: var(--color-white, rgb(255, 255, 255));
  border-top: 1px solid var(--color-border, rgb(235, 235, 235));
  width: 100%;
}

.legal-bar-inner {
  align-items: center;
  column-gap: 24px;
  display: flex;
  flex-wrap: wrap;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  justify-content: center;
  line-height: 150%;
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px 24px;
  row-gap: 8px;
  text-align: center;
}

.legal-bar-copy {
  color: var(--color-gray-500, rgb(115, 115, 115));
}

.legal-bar-link {
  color: var(--color-gray-500, rgb(115, 115, 115));
  text-decoration: none;
}

.legal-bar-link:hover {
  color: var(--color-gray-800, rgb(38, 38, 38));
  text-decoration: underline;
}

/* --- Screen-reader-only text ------------------------------------------ */
/* Gives an accessible name to icon-only and image-only controls without
   rendering anything visible. */
.sr-only {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* --- Form privacy notice ---------------------------------------------- */
.form-privacy-notice {
  color: var(--color-gray-500, rgb(115, 115, 115));
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 150%;
  margin: 12px 0 0;
}

.form-privacy-notice a {
  color: inherit;
  text-decoration: underline;
}

/* --- Message field ---------------------------------------------------- */
/* The message is a <textarea>, so Enter starts a new line instead of
   submitting the form. The per-page field styles assume a single-line input:
   they clamp the wrapper to 40px and set nowrap/overflow:hidden on the
   control, both of which must be undone here. */
.message-field-wrap {
  height: auto !important;
}

/* Matches the specificity of the per-page `.<scope> textarea` rule, and wins
   on order because this file loads last. */
textarea.message-field {
  display: block;
  height: auto;
  min-height: 96px;
  overflow: auto;
  resize: vertical;
  white-space: pre-wrap;
}
