.matching-page {
  margin-bottom: 48px;
}
.matching-intro {
  padding: clamp(20px, 4vw, 42px);
  border-radius: 20px;
  color: #fff;
  background: #083b4f;
}
.matching-intro h1 {
  max-width: 24ch;
  margin: 0 0 .55rem;
  color: inherit;
  font: 400 clamp(2.1rem, 5vw, 3.9rem) / 1.04 Georgia, serif;
  letter-spacing: -.035em;
}
.matching-intro p,
.match-results > p { margin: 0; }
.match-form {
  margin-top: 20px;
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f2f8f8;
}
.match-fields, .match-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
}
.match-fields label, .match-form legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 750;
}
.match-fields label span, .match-form legend span { color: var(--muted); font-weight: 400; }
.match-fields select, .match-fields input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #b9d2d5;
  border-radius: 9px;
  background: #fff;
  color: var(--deep);
  font: inherit;
}
.match-fields select { padding-right: 35px; }
.match-location { grid-column: 1 / -1; }
.match-location input { max-width: 500px; }
.match-form fieldset { margin: 18px 0; padding: 0; border: 0; min-inline-size: 0; }
.match-options { display: flex; flex-wrap: wrap; gap: 7px; }
.match-option {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: .875rem;
  cursor: pointer;
}
.match-option:has(:checked) { border-color: #82b9b2; background: #def2ef; }
.match-option input { accent-color: var(--deep); margin: 0; }
.match-form .action { min-height: 44px; cursor: pointer; }
.match-hint, .match-meta { color: var(--muted); font-size: .875rem; }
.match-hint { margin: 5px 0 0; }
.match-results { margin-top: 26px; }
.match-results h2 { margin-bottom: 5px; }
.match-columns { margin-top: 16px; }
.match-columns h3 { margin: 0; }
.match-list {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 0;
  margin: 10px 0;
  list-style: none;
}
.match-list li { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.match-list h4 { margin: 0; font-size: 1.05rem; }
.match-list p { margin: 6px 0; }
.match-list .action { margin-top: 4px; }
.match-browse { color: var(--deep); text-underline-offset: 3px; }
@media (max-width: 650px) {
  .match-fields, .match-columns { grid-template-columns: 1fr; }
}
