.pilot-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  max-height: min(18rem, 55dvh);
  overflow-y: auto;
  background: #11352e;
  color: #fff;
  padding: .55rem max(1rem, env(safe-area-inset-right)) calc(.55rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  box-shadow: 0 -4px 20px #0002;
}
body:has(.pilot-banner) { padding-bottom: calc(min(18rem, 55dvh) + env(safe-area-inset-bottom)); }
.pilot-bar-heading, .pilot-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.pilot-banner button, .pilot-directory button {
  font: inherit;
  cursor: pointer;
  border: 1px solid #8bb5a8;
  border-radius: .65rem;
  padding: .35rem .6rem;
  min-height: 44px;
  color: inherit;
  background: transparent;
}
.pilot-open { overflow: hidden; }
dialog.pilot-directory {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  color: #16352d;
  background: #f7fbf8;
}
dialog.pilot-directory[open] { display: flex; flex-direction: column; animation: pilot-rise .22s ease-out; }
.pilot-directory > * { width: min(100%, 46rem); margin-inline: auto; }
.pilot-heading h2 { margin: 0; }
.pilot-list { overflow-y: auto; overscroll-behavior: contain; }
.pilot-row { border-bottom: 1px solid #d4e2db; }
.pilot-row summary { padding: .8rem .35rem; cursor: pointer; }
.pilot-row summary span { display: block; margin: .2rem 0 0 1.15rem; color: #45635b; }
.pilot-details { padding: 0 1.5rem .8rem; }
.pilot-details p { margin: 0 0 .4rem; }
@keyframes pilot-rise { from { transform: translateY(100%); } }
@media (max-width: 600px) {
  .pilot-bar-heading { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.pilot-directory[open] { animation: none; }
}

.pilot-placements {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(.45rem, 2vw, 1rem);
  align-items: center;
  margin-top: .5rem;
}
.pilot-text-listings { display: grid; }
.pilot-banner .pilot-text-listings button {
  border: 0;
  border-radius: 0;
  min-height: 32px;
  position: relative;
  padding: .25rem .15rem .25rem 1rem;
  text-align: left;
  font-size: .86rem;
  overflow-wrap: anywhere;
}
.pilot-banner .pilot-text-listings button::before {
  content: "";
  position: absolute;
  inset-inline-start: .15rem;
  top: 50%;
  transform: translateY(-50%);
  width: .3rem;
  height: .3rem;
  border-radius: 50%;
  background: currentColor;
}
.pilot-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: .35rem;
  padding-inline-start: clamp(.55rem, 2.5vw, 1rem);
  border-inline-start: 1px solid #8bb5a8;
}
.pilot-banner .pilot-square {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  width: clamp(4.15rem, 20vw, 4.75rem);
  aspect-ratio: 1;
  padding: .25rem;
  border: 1px solid #b8ded1;
  background: #d9f1e8;
  color: #11352e;
  overflow-wrap: anywhere;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.12;
}
.pilot-square span { font-size: .68rem; font-weight: 400; }
.gerrard-feature.practice {
  margin: 1.25rem 0;
  padding: clamp(1rem, 4vw, 2rem);
  background: #d9f1e8;
  color: #11352e;
  border: 1px solid #7ba89a;
  border-inline-start: .4rem solid #22574a;
  border-radius: 1rem;
}
.gerrard-feature h2 { margin: .25rem 0; }
.gerrard-feature .address { margin: .35rem 0 .75rem; }
.gerrard-feature .phone-link { display: inline-block; margin-right: .75rem; }

.pilot-banner a.pilot-square {
  box-sizing: border-box;
  text-align: center;
  border-radius: .65rem;
  text-decoration: none;
}
.directory-placement { scroll-margin-top: 1rem; }
