/*
 * Contact page (/contact/) — ported from the <style> block of src/pages/contact/index.astro.
 * Loads after forms.css (contact form) and before sections.css (Visit), as in the reference.
 */
.contact {
  padding-top: 0;
}

.contact__grid {
  display: grid;
  gap: 3rem;
}

.contact__direct {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

/* The centres' direct lines: a short ruled list, the district at the left and its number set
 * large at the right (proportional figures, like every number of the site set this large). Kept
 * narrow, so that on a single-column tablet layout the district stays close to its number. */
.contact__lines {
  max-width: 28rem;
  margin-block: 0.5rem 0.75rem;
  border-top: 1px solid var(--line-strong);
}

.contact__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact__district {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--fg-2);
  transition: color var(--dur) var(--ease-soft);
}

.contact__num {
  font-size: var(--fs-h3);
  font-stretch: var(--w-display);
  font-weight: 460;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.contact__line:hover .contact__district {
  color: var(--fg);
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  width: fit-content;
  text-decoration: none;
}

.contact__mail:hover,
.contact__line:hover .contact__num {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.contact__note {
  margin-top: 1rem;
  color: var(--fg-2);
  font-size: var(--fs-small);
}

.contact__note a {
  color: var(--fg);
}

.contact__form {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border-radius: var(--radius);
  background: var(--white);
}

@media (min-width: 64rem) {
  .contact__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(3rem, 7vw, 8rem);
  }
}
