/* County directories inherit the site's fonts and colours. */
.county-place-directory {
  display: grid;
  /* Two areas per row: one per row made a seven-area county a long scroll for
     what is a short list under each heading. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  margin-block: 1.5rem 2.5rem;
}
/* Each area is a block rather than loose text, matching the bordered cards the
   equipment section already uses on this page. Park names were drifting in a
   two-column inner grid with nothing tying them to their town. */
.county-place-directory .county-place-group {
  padding: 20px 22px;
  border: 1px solid var(--line, #e3e4e8);
  border-radius: var(--radius, 12px);
  background: #fff;
}
/* An odd last area sat alone beside an empty half-row; spanning it turns the
   hole into a deliberate full-width row. */
.county-place-directory .county-place-group:last-child:nth-child(odd) { grid-column: 1 / -1; }
.county-place-directory .county-place-group { min-width: 0; }
.county-place-directory .county-place-group > h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  line-height: 1.3;
}
.county-place-directory .county-place-list {
  display: grid;
  /* One column inside an area block. Two made a town with three parks wrap
     ragged, and the park names no longer need the width now the block holds
     them together. A full-width spanned block gets two columns back. */
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.county-place-directory .county-place-group:last-child:nth-child(odd) .county-place-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 2rem;
}
.county-place-directory .county-place-list > li {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.county-place-directory .county-place-list > li::before,
.county-place-directory .county-place-list > li::after { content: none; }
.county-local-context { margin-block: 3rem; }
.county-local-context > h2 { margin-bottom: 1.5rem; }
.county-local-context article + article { margin-top: 1.5rem; }
.county-local-context p { max-width: 70ch; }
@media (max-width: 800px) {
  .county-place-directory { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .county-place-directory .county-place-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
  }
}
@media (max-width: 359px) {
  .county-place-directory .county-place-list { grid-template-columns: minmax(0, 1fr); }
}
