main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 2rem 1.25rem clamp(2rem, 7svh, 5rem);
}
section { width: min(100%, 36.5rem); text-align: center; }
.directory-heading {
  width: min(100%, clamp(15rem, 76vw, 21.5rem));
  margin: 0 auto clamp(1.75rem, 4vw, 2.25rem);
}
.directory-heading .mark { transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .directory-heading .mark { animation: pin-balance 1.05s ease-in-out; }
  @keyframes pin-balance {
    0%, 100% { transform: rotate(0); }
    19% { transform: rotate(-13deg); }
    44% { transform: rotate(9deg); }
    65% { transform: rotate(-4.5deg); }
    83% { transform: rotate(2deg); }
  }
}
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
form[role="search"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  padding: .375rem;
  border: 1px solid #c9d6d1;
  border-radius: 2rem;
  background: white;
  box-shadow: 0 2px 6px #1838330a;
}
form[role="search"]:focus-within {
  outline: 2px solid #116b62;
  outline-offset: 2px;
}
.searchbar {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding-inline: .875rem .25rem;
  min-width: 0;
}
.magnifier { width: 15px; height: 15px; border: 2px solid #70757a; border-radius: 50%; position: relative; flex: none; }
.magnifier::after { content: ''; width: 7px; height: 2px; background: #70757a; position: absolute; top: 11px; left: 10px; transform: rotate(45deg); }
#postcode { flex: 1; min-width: 0; border: 0; outline: none; padding: .6rem 0; background: transparent; }
#postcode:placeholder-shown { text-overflow: ellipsis; }
#postcode::placeholder { color: #5f6368; }

form[role="search"] > .search-button {
  margin: 0;
  min-height: 2.75rem;
  padding-inline: 1.5rem;
  border: 0;
  border-radius: 2rem;
  color: white;
  background: #086c57;
  font: 1rem/1 "Google Sans", Arial, sans-serif;
}
form[role="search"] > .search-button:hover { background: #075542; }
.search-tagline {
  margin: 1.25rem auto 0;
  color: #53665f;
  font: .9375rem/1.5 "Google Sans", Arial, sans-serif;
  text-wrap: balance;
}

@media (max-width: 32rem) {
  form[role="search"] {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: .75rem;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  form[role="search"]:focus-within { outline: none; }
  .searchbar {
    width: 100%;
    min-height: 3.25rem;
    padding-inline: .95rem;
    border: 1px solid #c9d6d1;
    border-radius: 2rem;
  }
  .searchbar:focus-within { outline: 2px solid #116b62; outline-offset: 2px; }
  .search-tagline { margin-top: 1.125rem; }
}
