/* Home page only. Self-contained so the page reads correctly before the
   superseded hero, stat-tile, quick-card and club-strip rules are removed from
   styles.css. Every selector here starts with .home-, which styles.css does not
   use, so the two files never fight over the same element. Design tokens come
   from styles.css and are neither redefined nor renamed here. */

.home-banner,
.home-section {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* A quiet header band. The photograph is 738 x 261, so it is used as a shallow
   band and the club's name sits below it on the page, not over the image. */
.home-banner {
  margin-top: 8px;
}
.home-banner .home-banner-photo {
  display: block;
  width: 100%;
  height: clamp(120px, 19vw, 210px);
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: var(--radius);
  background: var(--hero-dark);
}
.home-banner .home-banner-text {
  padding: 26px 0 8px;
}
.home-banner .home-banner-text h1 {
  font-size: clamp(27px, 3.4vw, 42px);
  letter-spacing: -1.1px;
  color: var(--brown);
  text-wrap: balance;
}
.home-banner .home-banner-text h1:focus {
  outline: none;
}
.home-banner .home-banner-text p {
  margin-top: 14px;
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.home-section {
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.home-section .home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 18px;
}
.home-section .home-section-head h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  color: var(--green);
}
.home-section .home-more {
  font-size: 16px;
  font-weight: 650;
  color: var(--brown);
  text-underline-offset: 4px;
}
.home-section .home-subhead {
  margin: -6px 0 16px;
  font-size: 16px;
  color: var(--muted);
}
.home-section .home-plain {
  max-width: 62ch;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 17px;
}
.home-section .home-plain:last-of-type {
  margin-bottom: 0;
}
.home-section .home-note {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

/* Upcoming events */
.home-section .home-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.home-section .home-event {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  min-height: 74px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition:
    border-color 0.15s var(--ease),
    background 0.15s var(--ease);
}
@media (hover: hover) {
  .home-section .home-event:hover {
    border-color: var(--brown);
    background: #fff;
  }
}
.home-section .home-event-date {
  flex: 0 0 auto;
  width: 56px;
  text-align: center;
  padding: 6px 0;
  border-radius: 10px;
  background: var(--sage);
  color: var(--green);
  line-height: 1.1;
}
.home-section .home-event-date b {
  display: block;
  font:
    800 22px/1.1 Montserrat,
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.home-section .home-event-date span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.home-section .home-event-body {
  flex: 1 1 auto;
  min-width: 0;
}
.home-section .home-event-title {
  display: block;
  font-weight: 650;
  font-size: 18px;
  color: var(--ink);
}
.home-section .home-event-meta {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  color: var(--muted);
}
.home-section .home-event-go {
  flex: 0 0 auto;
  color: var(--brown);
  font-size: 19px;
}

/* Honour boards preview */
.home-section .home-honours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.home-section .home-honours li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sand);
}
.home-section .home-honour-award {
  flex: 0 0 auto;
  min-width: 190px;
  font-size: 15px;
  color: var(--muted);
}
.home-section .home-honour-name {
  flex: 1 1 auto;
  font-weight: 650;
  font-size: 17px;
}
.home-section .home-honour-year {
  flex: 0 0 auto;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.home-section .home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 18px;
  font-size: 16px;
}
.home-section .home-links a {
  font-weight: 650;
  color: var(--brown);
  text-underline-offset: 4px;
  padding: 4px 0;
}

/* How to join */
.home-section .home-tbc {
  max-width: 62ch;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px dashed #b9bdad;
  border-radius: 10px;
  background: var(--sage);
  font-size: 16px;
  color: var(--ink);
}

@media (max-width: 760px) {
  .home-banner .home-banner-text {
    padding-top: 22px;
  }
  .home-section {
    padding-top: 26px;
    margin-top: 26px;
  }
  .home-section .home-honour-award {
    min-width: 0;
    flex-basis: 100%;
  }
}
@media (max-width: 480px) {
  .home-banner .home-banner-photo {
    border-radius: 14px;
  }
  .home-banner .home-banner-text p {
    font-size: 17px;
  }
  .home-section .home-event {
    gap: 14px;
    padding: 12px 14px;
  }
  .home-section .home-event-date {
    width: 50px;
  }
  .home-section .home-honours li {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* The events page reuses the home rows at full page width. */
.home-section.home-wide {
  max-width: none;
}
.home-section.home-wide:first-of-type {
  border-top: 0;
  margin-top: 8px;
  padding-top: 0;
}
