/* Group listing: results heading, group cards, status pills, pagination. */

.website-search-section {
  background: var(--mint);
  padding: 24px 0 40px;
}
.website-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
}
.website-results-heading h2 {
  font-size: 28px;
}
/* Three cards a row on a desktop, two on a tablet, one on a phone. The card
   is laid out for that width: the status beside the activity, the facts as
   one icon list, the capacity on a single line. */
.website-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1024px) {
  .website-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .website-group-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.website-group-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 5px 20px #263e7806;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.website-group-card:hover,
.website-group-card:focus-within {
  border-color: #b9d3bf;
  box-shadow: 0 10px 24px #103d3214;
}
.website-group-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.website-group-card .website-eyebrow {
  display: block;
  margin: 0 !important;
}
.website-group-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  /* A long name stays on two lines so the cards of a row line up. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.website-group-card h3 a:hover {
  color: var(--blue);
}
.website-group-card-facts {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.website-group-card-facts li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.website-group-card-facts svg {
  flex: none;
  margin-top: 2px;
  color: #6b7f99;
}
.website-group-card .public-unit-link {
  display: inline;
  overflow-wrap: anywhere;
}
.website-group-card-sessions {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}
.website-session {
  white-space: nowrap;
}
.website-capacity {
  margin-top: auto;
}
.website-capacity-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.website-capacity-line strong {
  color: var(--ink, #15233b);
}
.website-capacity-numbers strong {
  font-size: 15px;
}
/* The meter is the one place a number alone is hard to read quickly; it is
   decorative, so the figures above it carry the same information for a
   screen reader. */
.website-meter {
  height: 6px;
  margin-top: 8px;
  border-radius: 6px;
  background: #e8ece9;
  overflow: hidden;
}
.website-meter-fill {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--green);
}
.website-meter-fill.full {
  background: #b9842c;
}
.website-capacity-left {
  margin: 0;
  font-size: 13px;
  color: #3d4f6b;
}
.website-group-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.website-group-card footer .website-button {
  flex: none;
  min-height: 44px;
  padding-inline: 16px;
}
.website-group-card-price {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.website-group-card-price strong {
  font-size: 17px;
  color: var(--ink, #15233b);
}
.website-status {
  display: inline-block;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 24px;
  background: #e6f5eb;
  color: #126b42;
}
.website-status.paused,
.website-status.closed,
.website-status.full {
  background: #f6efdf;
  color: #7c5920;
}
/* Not open yet is not the same as closed: the group is coming, which is
   information rather than a refusal. */
.website-status.upcoming {
  background: #e8eefb;
  color: #27477e;
}
/* One row per period, label and dates side by side: two columns of dates
   did not fit a card in a three-card row. */
.website-group-card-dates {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--mint);
  font-size: 12px;
}
.website-group-card-dates > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.website-group-card-dates dt {
  color: var(--muted);
}
.website-group-card-dates dd {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}
.website-group-card-opens {
  margin: -6px 0 0;
  font-size: 12px;
  color: #27477e;
}
.public-group-opens {
  margin-top: 6px;
  font-size: 14px;
  color: #27477e;
}
.website-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 35px;
}
.website-pagination a,
.website-pagination button,
.website-pagination [aria-disabled='true'] {
  padding: 10px 20px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
}
.website-pagination a:hover {
  border-color: var(--green);
  color: var(--green);
}
.website-pagination [aria-disabled='true'] {
  opacity: 0.45;
  cursor: default;
}
