/*
 * RCQ homepage shared styles.
 * Keep every selector under .rcq-home to avoid changing ClubRunner site chrome.
 * Uploaded as homepage.css in ClubRunner Website Settings > Upload CSS.
 */
.rcq-home {
  --rcq-blue: #17458f;
  --rcq-gold: #f7a81b;
  --rcq-white: #fff;
  --rcq-ink: #13203a;
  --rcq-muted: #4b5873;
  --rcq-line: #dde4f0;
  --rcq-card: #fff;
  --rcq-alt: #f2f5fb;
  color: var(--rcq-ink);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.rcq-home,
.rcq-home * {
  box-sizing: border-box;
}

.rcq-home img {
  display: block;
  max-width: 100%;
  height: auto;
}

.rcq-home h2 {
  margin: 0 0 18px;
  color: var(--rcq-blue);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
}

.rcq-home h3 {
  margin: 0;
  color: var(--rcq-blue);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.rcq-home p {
  margin-top: 0;
}

/* The theme sets its own dark text color on li/p/span, so text inside dark blocks
   does not inherit white. Set it explicitly. This block comes first, so the more
   specific per-section colors (for example gold labels) further down still win. */
.rcq-home.rcq-home :where(.rcq-hero, .rcq-band--blue, .rcq-profile, .rcq-foundation-stats > div, .rcq-polio-amount) :where(p, li, span, small, strong, a) {
  color: #fff;
}

.rcq-home .rcq-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.rcq-home .rcq-band {
  padding: clamp(64px, 8vw, 112px) max(5vw, 20px);
  background: #fff;
  color: var(--rcq-ink);
}

.rcq-home .rcq-band--alt {
  background: var(--rcq-alt);
}

.rcq-home .rcq-band--blue {
  background: var(--rcq-blue);
  color: var(--rcq-white);
}

.rcq-home .rcq-band--blue h2 {
  color: var(--rcq-white);
}

.rcq-home .rcq-lede {
  max-width: 68ch;
  margin: 0 0 clamp(32px, 4vw, 48px);
  color: var(--rcq-muted);
  font-size: 17px;
}

/* 01 — Hero */
.rcq-home .rcq-hero {
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) max(5vw, 20px) 0;
  background: var(--rcq-blue);
  color: var(--rcq-white);
  text-align: center;
}

.rcq-home .rcq-hero__logo {
  width: min(440px, 80vw);
  margin: 0 auto 32px;
}

/* The ClubRunner editor strips classes from headings, so target the h1 by element. */
.rcq-home .rcq-hero h1,
.rcq-home .rcq-hero__title {
  margin: 0 0 18px;
  color: var(--rcq-white);
  font-family: inherit;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: none;
}

/* The editor wraps standalone images in <p>; remove that paragraph's spacing. */
.rcq-home p:has(> img) {
  margin: 0;
}

.rcq-home .rcq-hero__intro {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--rcq-white);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  opacity: .92;
}

.rcq-home .rcq-hero__anniversary {
  display: inline-block;
  margin: 28px 0 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  color: var(--rcq-gold);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.rcq-home .rcq-hero__hands {
  width: min(900px, 100%);
  margin: clamp(48px, 6vw, 80px) auto 0;
}

/* 02 — About */
.rcq-home .rcq-about__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.rcq-home .rcq-about__photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
}

.rcq-home .rcq-about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rcq-home .rcq-about__content > p {
  margin: 0 0 36px;
  color: var(--rcq-muted);
  font-size: 17px;
}

.rcq-home .rcq-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rcq-home .rcq-stat {
  padding: 24px;
  border-radius: 16px;
  background: var(--rcq-alt);
}

.rcq-home .rcq-stat strong {
  display: block;
  color: var(--rcq-blue);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  line-height: 1;
}

.rcq-home .rcq-stat span {
  display: block;
  margin-top: 8px;
  font-weight: 500;
}

/* 03, 06 — People cards */
.rcq-home .rcq-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: clamp(24px, 3vw, 36px) clamp(16px, 2.4vw, 28px);
}

.rcq-home .rcq-people--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.rcq-home .rcq-person {
  min-width: 0;
  text-align: center;
}

.rcq-home .rcq-person__photo {
  display: grid;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--rcq-line);
}

.rcq-home .rcq-people--three .rcq-person__photo {
  aspect-ratio: 4 / 5;
}

.rcq-home .rcq-person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.rcq-home .rcq-person__initials {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--rcq-blue);
  color: #fff;
  font-size: 44px;
  font-weight: 700;
}

.rcq-home .rcq-person h3 {
  font-size: 16px;
}

.rcq-home .rcq-person p {
  margin: 4px 0 0;
  color: var(--rcq-muted);
  font-size: 14px;
  line-height: 1.45;
}

/* 04 — Legacy */
.rcq-home .rcq-legacy__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.rcq-home .rcq-facts {
  display: grid;
  gap: 18px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.rcq-home .rcq-facts li {
  position: relative;
  padding-left: 28px;
  font-size: 17px;
}

.rcq-home .rcq-facts li::before {
  position: absolute;
  top: .55em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rcq-gold);
  content: "";
}

.rcq-home .rcq-assistant-governors {
  padding: 28px;
  border-radius: 16px;
  background: var(--rcq-alt);
}

.rcq-home .rcq-assistant-governors ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.rcq-home .rcq-assistant-governors li {
  font-size: 15px;
}

.rcq-home .rcq-assistant-governors li span {
  display: block;
  color: var(--rcq-muted);
  font-size: 13px;
}

.rcq-home .rcq-legacy__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rcq-home .rcq-legacy__photos img {
  width: 100%;
  aspect-ratio: 1;
  border: 5px solid var(--rcq-blue);
  border-radius: 50%;
  object-fit: cover;
}

.rcq-home .rcq-legacy__photos img:nth-child(even) {
  border-color: var(--rcq-gold);
}

/* 05 — Membership trends */
.rcq-home .rcq-trends {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.rcq-home .rcq-trend-facts {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rcq-home .rcq-trend-facts li {
  padding: 20px 24px;
  border: 1px solid var(--rcq-line);
  border-radius: 16px;
  background: var(--rcq-card);
  font-size: 17px;
}

.rcq-home .rcq-trend-facts strong {
  color: var(--rcq-blue);
}

.rcq-home .rcq-profile {
  padding: 28px;
  border-radius: 16px;
  background: var(--rcq-blue);
  color: #fff;
}

.rcq-home .rcq-profile h3 {
  color: var(--rcq-gold);
}

.rcq-home .rcq-profile li {
  color: #fff;
}

.rcq-home .rcq-profile ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 18px;
  font-size: 16px;
}

/* 06 — member group spacing */
.rcq-home .rcq-member-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 88px);
}

.rcq-home .rcq-member-groups .rcq-lede {
  margin-bottom: 32px;
}

/* 07 — Rotaract */
.rcq-home .rcq-rotaract {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.rcq-home .rcq-rotaract .rcq-lede {
  margin: 0;
}

.rcq-home .rcq-rotaract img {
  width: 100%;
  border-radius: 20px;
}

/* 08, 12 — image card grids */
.rcq-home .rcq-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}

.rcq-home .rcq-project-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--rcq-line);
  border-radius: 16px;
  background: var(--rcq-card);
}

.rcq-home .rcq-project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rcq-home .rcq-project-card figcaption {
  padding: 16px 18px 20px;
  font-size: 15px;
  line-height: 1.5;
}

.rcq-home .rcq-subhead {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
  margin: 0 0 28px;
}

.rcq-home .rcq-subhead h2 {
  margin: 0;
}

.rcq-home .rcq-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: #fde9c4;
  color: var(--rcq-blue);
  font-size: 14px;
  font-weight: 600;
}

.rcq-home .rcq-more {
  margin: 24px 0 0;
  color: var(--rcq-muted);
  font-style: italic;
}

.rcq-home .rcq-project-gap {
  height: clamp(64px, 8vw, 112px);
}

/* 09 — Major project */
.rcq-home .rcq-major-project {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.rcq-home .rcq-major-project h2 {
  color: #fff;
}

.rcq-home .rcq-major-project p {
  margin: 0 0 16px;
  color: #fff;
  font-size: 17px;
  opacity: .94;
}

.rcq-home .rcq-major-project .rcq-major-project__by {
  margin-bottom: 24px;
  color: var(--rcq-gold);
  font-weight: 600;
  opacity: 1;
}

.rcq-home .rcq-major-project img {
  width: 100%;
  border-radius: 20px;
}

/* 10 — Rotary Foundation */
.rcq-home .rcq-foundation-rank {
  margin: 0 0 12px;
  font-size: 18px;
}

.rcq-home .rcq-foundation-rank strong {
  color: var(--rcq-blue);
}

.rcq-home .rcq-foundation-badge {
  display: inline-block;
  margin: 0 0 clamp(32px, 4vw, 48px);
  color: #a86a00;
  font-weight: 600;
}

.rcq-home .rcq-foundation-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.rcq-home .rcq-foundation-stats > div {
  padding: 28px 20px;
  border-radius: 16px;
  background: var(--rcq-blue);
  color: #fff;
  text-align: center;
}

.rcq-home .rcq-foundation-stats strong {
  display: block;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1;
}

.rcq-home .rcq-foundation-stats span {
  display: block;
  margin-top: 10px;
  font-weight: 500;
}

.rcq-home .rcq-foundation-stats small {
  display: block;
  margin-top: 8px;
  color: var(--rcq-gold);
  font-size: 14px;
}

.rcq-home .rcq-aks {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
}

.rcq-home .rcq-aks figure {
  margin: 0;
  text-align: center;
}

.rcq-home .rcq-aks img {
  width: 110px;
  height: 130px;
  border-radius: 12px;
  object-fit: cover;
}

.rcq-home .rcq-aks figcaption {
  margin-top: 8px;
  color: var(--rcq-muted);
  font-size: 14px;
}

.rcq-home .rcq-aks > p {
  max-width: 28ch;
  margin: 0;
  color: var(--rcq-muted);
}

/* 11 — Polio */
.rcq-home .rcq-polio-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.rcq-home .rcq-polio-amount {
  padding: 22px 32px;
  border-radius: 18px;
  background: var(--rcq-blue);
  color: #fff;
  text-align: center;
}

.rcq-home .rcq-polio-amount strong {
  display: block;
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
}

.rcq-home .rcq-polio-amount span {
  font-weight: 600;
}

.rcq-home .rcq-polio-top > p {
  margin: 0;
  font-size: 18px;
}

.rcq-home .rcq-polio-top > p strong {
  color: #a86a00;
}

.rcq-home .rcq-polio-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rcq-home .rcq-polio-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  object-fit: cover;
}

/* 13 — Visit */
.rcq-home .rcq-visit {
  overflow: hidden;
  padding-bottom: 0;
  text-align: center;
}

.rcq-home .rcq-visit__logo {
  width: min(320px, 70vw);
  margin: 0 auto 40px;
}

.rcq-home .rcq-visit__wip {
  margin: 0 0 36px;
  color: var(--rcq-gold);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
}

.rcq-home .rcq-visit h2 {
  color: #fff;
}

.rcq-home .rcq-visit__when {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
}

.rcq-home .rcq-visit__small {
  margin: 8px 0 0;
  opacity: .8;
}

.rcq-home .rcq-visit__hands {
  width: min(640px, 90%);
  margin: clamp(48px, 6vw, 80px) auto 0;
}

@media (max-width: 900px) {
  .rcq-home .rcq-legacy__layout,
  .rcq-home .rcq-trends,
  .rcq-home .rcq-member-groups,
  .rcq-home .rcq-rotaract,
  .rcq-home .rcq-major-project {
    grid-template-columns: 1fr;
  }

  .rcq-home .rcq-legacy__photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .rcq-home .rcq-foundation-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .rcq-home .rcq-polio-photos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .rcq-home .rcq-assistant-governors ol {
    grid-template-columns: 1fr;
  }

  .rcq-home .rcq-people--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
