/* Equal-height club cards, with content in normal flow and buttons at the bottom. */
.clubs,
.post-type-archive-4h_club .content__archive,
.post-type-archive-4h_event .content__archive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem;
  grid-auto-rows: 1fr;
  align-items: stretch;
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 1.5rem 0;
}
.featured-club-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  overflow: hidden;
}
.featured-club-image { flex-shrink: 0; }
.featured-club-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 15rem;
  object-fit: contain;
  background: #f5f5f2;
}
.featured-club-body { flex: 1; padding: 1.25rem; }
.featured-club-body h3 { overflow-wrap: anywhere; }
.featured-club-call-to-action {
  flex-shrink: 0;
  margin-top: auto;
  position: static;
  height: auto;
  min-height: 0;
  padding: 1rem 1.25rem;
  text-align: left;
}
.featured-club-note {
  display: block;
  font-weight: 400;
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: .75rem;
}
.featured-club-link { display: block; font-weight: 700; }
.featured-club-card:focus-visible { outline: 3px solid #173f28; outline-offset: 4px; }

/* Reading rhythm and contrast; retain the existing typefaces and brand colours. */
body { line-height: 1.6; }
.wrap > .content {
  max-width: 72rem;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 2.5rem;
}
.page .entry-content,
.single-post .entry-content { max-width: 70ch; }
.page-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.2; }
.entry-content h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.3; }
.entry-content h3 { font-size: 1.25rem; line-height: 1.4; }
.entry-content p + p { margin-top: 1rem; }
.featured-club-card,
.shadowed { box-shadow: 0 3px 12px rgba(0, 0, 0, .14); }
.featured-club-card:hover,
.featured-club-card:focus-visible { box-shadow: 0 5px 18px rgba(0, 0, 0, .22); }
.featured-club-call-to-action,
.btn,
.form-control__submit { background-color: #32783e; color: #fff; }
.footer__content,
.footer__content p,
.footer__content li { color: #e0e0e0; }
.footer__content a { color: #fff; text-decoration: underline; }
.footer__copyright { color: #c5c5c5; letter-spacing: .1em; font-size: .8rem; }
.footer__title { padding: 1.5rem 1rem 0; }
.footer__wrap { max-width: 70rem; gap: 1rem; padding: 0 1rem; }
.footer__content { max-width: 48ch; line-height: 1.65; }
.footer__social { white-space: normal; min-width: 0; }
.footer__social a { overflow-wrap: anywhere; }
.footer__nav .menu-item { margin-left: 0; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible { outline: 3px solid #145d31; outline-offset: 3px; }
.footer a:focus-visible { outline-color: #fff; }
@media (min-width: 768px) {
  .footer__wrap { align-items: start; justify-content: space-between; }
  .footer__content { margin: 1.5rem 0; }
}

/* Club details: separate information, meetings and leader contacts. */
.club-detail { padding: clamp(1rem, 3vw, 2rem); background: #fff; }
.club-detail__back { display: inline-block; margin-bottom: 1rem; font-size: .95rem; }
.club-detail .club__title { margin: 0 0 1rem; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; }
.club-detail__notice { margin: 1.5rem 0; padding: 1rem 1.25rem; background: #edf5ed; border-left: 4px solid #32783e; }
.club-detail__layout { display: grid; gap: 2rem; margin-top: 2rem; }
.club-detail h2 { font: 700 1.35rem/1.4 lato, sans-serif; margin: 0 0 1rem; }
.club-detail h3 { font-size: 1rem; background: none; color: #333; padding: 0; }
.club-detail__image img { display: block; max-height: 24rem; width: auto; max-width: 100%; object-fit: contain; }
.club-detail .club__description { margin: 1rem 0; max-width: 65ch; }
.club-detail__meetings { padding: 1.25rem; background: #f5f7f4; border-radius: 4px; }
.club-detail .club-meeting { margin: 0 0 1.5rem; color: #333; }
.club-detail__leaders { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #ddd; }
.club-detail .club-leaders__wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin: 0; }
.club-detail .club-leaders__leader { margin: 0; padding: 1rem; background: #f5f7f4; min-width: 0; }
.club-detail .leader-details__contact-group { margin-left: 0; min-width: 0; overflow-wrap: anywhere; }
.club-detail .leader-details__profile-image { margin-right: .75rem; }
.club-detail .leader-details__name { color: #333; font-weight: 700; }
@media (min-width: 900px) {
  .club-detail__layout { grid-template-columns: minmax(0, 1.6fr) minmax(15rem, 1fr); align-items: start; }
}

/* Contact forms and keyboard navigation. */
.contact .entry-content { max-width: 42rem; }
.perth-contact { max-width: 42rem; }
.perth-contact__form label { display: block; margin-bottom: .4rem; font-weight: 700; }
.perth-contact__form input:not([type="hidden"]),
.perth-contact__form textarea {
  display: block; width: 100%; box-sizing: border-box;
  border: 1px solid #777; border-radius: 3px; padding: .75rem;
  background: #fff; color: #333; font: inherit;
}
.perth-contact__form .form__group { margin-bottom: 1.25rem; }
.perth-contact__form textarea { resize: vertical; }
.perth-contact__form button { padding: .75rem 1.25rem; border-radius: 3px; font: inherit; cursor: pointer; }
.perth-contact__form button:disabled { opacity: .75; cursor: default; }
.perth-contact__status { margin: 1rem 0; }
.perth-contact__alternative { margin: 1rem 0 2rem; overflow-wrap: anywhere; }
.contact-container .contact__form { padding: 1.5rem; }
.contact-container .perth-contact__status,
.contact-container .perth-contact__alternative,
.contact-container .perth-contact__alternative a,
.contact-container .perth-contact__form label { color: #fff; }
.contact-container .perth-contact a:focus-visible { outline-color: #fff; }
.skip-link { position: fixed; top: .5rem; left: 1rem; transform: translateY(-200%); z-index: 10000; background: #fff; color: #173f28; padding: .75rem 1rem; }
.skip-link:focus { transform: none; }
.mobile-site-name { font: 700 .95rem/1.3 lato, sans-serif; color: #fff; margin-left: .75rem; }
#navigation-toggle { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
#navigation-toggle:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
.nav-primary a:focus-visible { outline-color: #fff; outline-offset: -3px; }
.nav-primary[aria-label] { overflow: visible; }
.nav-primary .menu-item { line-height: 1.5; margin-bottom: 0; }
@media (min-width: 768px) {
  .nav-primary .nav__primary { display: flex; align-items: center; height: 100%; padding: 0; }
  .nav-primary .menu-item a { display: flex; align-items: center; min-height: 56px; padding: 0 1rem; }
  .nav-primary .brand { display: flex; align-items: center; }
}
@media (max-width: 767px) {
  .nav-primary[aria-label] { overflow-x: hidden; overflow-y: auto; }
  .nav-primary:not(.open) { visibility: hidden; }
  .nav-primary.open { visibility: visible; }
  .nav-primary .nav__primary { padding-top: 0; }
  .navigation-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .nav-primary { transition: none; } }

/* Club image choices use the same square crop as the editor preview. */
.featured-club-image img { aspect-ratio: 1; max-height: none; object-fit: cover; }
.club-detail__notice h2 { margin: 0 0 .5rem; }
.club-detail__notice p { margin: 0; }
.club-detail__notice p + p { margin-top: .75rem; }

/* Event directory: the club card layout, with a calendar panel instead of a photo. */
.event-card { background: #fff; }
.event-card__date-panel {
  display: grid;
  place-items: center;
  min-height: 11rem;
  padding: 1.5rem;
  flex-shrink: 0;
  background: #edf5ed;
  color: #245332;
  border-top: 5px solid #32783e;
}
.event-card__date { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.event-card__month { font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.event-card__day { font-size: 3.5rem; line-height: 1.1; margin: .2rem 0; }
.event-card__year { font-size: .95rem; }
.event-card__pending { font-weight: 700; text-align: center; }
.event-card__body .event-card__title { font-family: 'chunk five', serif; font-size: 1.25rem; line-height: 1.35; margin: 0; color: #333; text-align: center; overflow-wrap: anywhere; }
.event-card__body p { margin: .75rem 0; }
.event-card__meta { margin: auto 0 0; padding-top: .75rem; font-size: .95rem; line-height: 1.5; color: #3f5445; }
.event-card__meta > div { margin-top: .4rem; }
.event-card__meta dt { font-weight: 700; }
.event-card__meta dd { margin: 0; overflow-wrap: anywhere; }
