/* Rotaract Club of Kano — site styles */
:root {
  --brand: #d91b5c;
  --brand-dark: #b0124a;
  --brand-soft: #fce8f0;
  --text: #141214;
  --text-muted: #5c585a;
  --white: #ffffff;
  --surface: #f6f4f5;
  --border: #e4dce0;
  --shadow: 0 16px 48px rgba(25, 18, 22, 0.06);
  --shadow-sm: 0 4px 20px rgba(25, 18, 22, 0.05);
  --radius: 14px;
  --radius-lg: 20px;
  /* Full-width friendly layout on large screens (was 1120px) */
  --max: min(1640px, calc(100vw - 3rem));
  --nav-h: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

/* Full-site ambient background from Gallery + optional assets/site-background/ (when images exist) */
body.has-site-bg {
  background-color: var(--surface);
}

.site-bg-highlights {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.site-bg-highlights__grid {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* grid-template-rows set inline — row count grows with number of tiles */
  gap: 0;
}

.site-bg-highlights__cell {
  min-height: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Softer blur + higher opacity so photos read through clearly */
  filter: blur(22px) saturate(1.2);
  opacity: 0.82;
  transform: scale(1.06);
  will-change: transform;
}

.site-bg-highlights__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Lighter veil — content stays readable but images are the hero */
  background: linear-gradient(
    155deg,
    rgba(246, 244, 245, 0.52) 0%,
    rgba(252, 249, 251, 0.42) 45%,
    rgba(246, 244, 245, 0.58) 100%
  );
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.12);
}

/* Main + footer sit above the blurred photo layer; header must stay above main or the
   mobile dropdown (fixed inside the header) paints underneath the page. */
body.has-site-bg > .site-header {
  position: relative;
  z-index: 50;
}

body.has-site-bg > main,
body.has-site-bg > .site-footer {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .site-bg-highlights__cell {
    filter: blur(14px) saturate(1.08);
    opacity: 0.65;
  }
  .site-bg-highlights__scrim {
    background: rgba(246, 244, 245, 0.72);
  }
}

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

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: var(--white);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(228, 220, 224, 0.85);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}
.brand-link:hover {
  text-decoration: none;
  opacity: 0.92;
}

.brand-link img {
  display: block;
  width: auto;
  height: auto;
  max-height: 72px;
  max-width: min(520px, calc(100vw - 11rem));
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

/* Horizontal club wordmark — same header slot as old wheel + title; scales larger */
.brand-link--logo-only img {
  max-height: min(72px, calc(var(--nav-h) - 12px));
  max-width: min(560px, calc(100vw - 12rem));
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9));
}

@media (max-width: 900px) {
  .brand-link--logo-only img {
    max-height: min(64px, calc(var(--nav-h) - 10px));
    max-width: min(440px, calc(100vw - 8rem));
  }
}

@media (max-width: 480px) {
  .brand-link--logo-only img {
    max-height: 54px;
    max-width: calc(100vw - 6.5rem);
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.2;
}
.brand-title {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.brand-tagline {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.brand-admin-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
  align-self: center;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font-size: 1rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav-list a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}
.nav-list a:hover {
  color: var(--brand);
  text-decoration: none;
}

.nav-list .btn.btn-primary {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  border-radius: 999px;
}

@media (min-width: 769px) and (max-width: 1180px) {
  .nav-list {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.35rem;
    column-gap: 1rem;
    max-width: min(680px, 58vw);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(217, 27, 92, 0.12) 0%, transparent 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(217, 27, 92, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--white) 0%, var(--surface) 100%);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* Homepage hero: editorial, left-aligned (no centered stack) */
.hero--text-only .hero-inner {
  grid-template-columns: 1fr;
  justify-items: start;
  align-items: start;
  padding-top: 2.75rem;
  padding-bottom: 3.25rem;
}

/* Paul Harris portrait + club copy (homepage) */
.hero-inner--with-founder {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2rem 2.5rem;
}

/* Third column: resources rail (home hero, right of headline block) */
.hero-inner--with-founder.hero-inner--with-resources {
  grid-template-columns: auto minmax(0, 1fr) minmax(12.5rem, 17rem);
  align-items: start;
  gap: 1.75rem 1.75rem;
}

.hero-founder {
  margin: 0;
  padding: 0;
  text-align: center;
  flex-shrink: 0;
}

.hero-founder img {
  display: block;
  width: clamp(120px, 22vw, 168px);
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(228, 220, 224, 0.95);
  background: var(--white);
}

.hero-founder-caption {
  margin: 0.65rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
  max-width: 11rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-founder-caption strong {
  font-size: 0.82rem;
  color: var(--text);
}

.hero-founder-dates {
  font-variant-numeric: tabular-nums;
}

.hero-founder-role {
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.hero--with-founder.hero--text-only .hero-inner {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: stretch;
}

.hero--with-founder.hero--text-only .hero-inner.hero-inner--with-resources {
  grid-template-columns: auto minmax(0, 1fr) minmax(12.5rem, 17rem);
}

.hero--with-founder.hero--text-only .hero-copy {
  padding-left: 1.25rem;
}

@media (max-width: 720px) {
  .hero-inner--with-founder {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-inner--with-founder.hero-inner--with-resources {
    grid-template-columns: 1fr;
  }

  .hero--with-founder.hero--text-only .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero--with-founder.hero--text-only .hero-inner.hero-inner--with-resources {
    grid-template-columns: 1fr;
  }

  .hero--with-founder.hero--text-only .hero-copy {
    text-align: left;
    justify-self: stretch;
    width: 100%;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-founder img {
    width: clamp(132px, 42vw, 168px);
  }

  .hero-resource-rail {
    justify-self: stretch;
    width: 100%;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
}

.hero--text-only .hero-copy {
  width: 100%;
  max-width: 36rem;
  text-align: left;
  margin: 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--brand);
}

.hero--text-only .hero-headline {
  max-width: none;
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.08;
}

.hero--text-only .hero-motto {
  margin: 0 0 1.25rem;
}

.hero--text-only .hero-actions {
  justify-content: flex-start;
}

.hero-meta-block {
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.hero-district-zone {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand);
}

.hero-sponsor-note {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-sponsor-name {
  color: var(--brand);
  font-weight: 700;
}

.hero-headline {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text);
}

.hero-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero-lead-tight {
  margin: 0 0 1.35rem;
  max-width: 38ch;
}

.hero--text-only .hero-lead-tight {
  margin-left: 0;
  margin-right: 0;
}

.hero--text-only .hero-inline-links {
  text-align: left;
}

.hero--text-only .hero-eyebrow {
  letter-spacing: 0.12em;
}

.hero-inline-links {
  margin: 1.15rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero-inline-links a {
  font-weight: 600;
}

a.hero-inline-about {
  color: var(--brand-dark);
  text-decoration: none;
}
a.hero-inline-about:hover {
  color: var(--brand);
  text-decoration: underline;
}

a.hero-inline-contact {
  color: inherit;
  text-decoration: none;
}
.hero-inline-contact__muted {
  color: var(--text);
  font-weight: 600;
}
.hero-inline-contact__accent {
  color: var(--brand);
  font-weight: 700;
}
a.hero-inline-contact:hover .hero-inline-contact__muted,
a.hero-inline-contact:hover .hero-inline-contact__accent {
  text-decoration: underline;
}

.hero-inline-sep {
  margin: 0 0.4rem;
  opacity: 0.45;
}

.hero-resource-rail {
  align-self: start;
  padding: 1.1rem 1.2rem 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 220, 224, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hero-resource-rail__title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1.3;
}

.hero-resource-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.hero-resource-rail__list a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
}
.hero-resource-rail__list a:hover {
  color: var(--brand);
  text-decoration: underline;
}

@media (max-width: 960px) {
  .hero-inner--with-founder.hero-inner--with-resources {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hero--with-founder.hero--text-only .hero-inner.hero-inner--with-resources {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hero-resource-rail {
    grid-column: 1 / -1;
    justify-self: stretch;
    max-width: none;
  }
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 36ch;
}

.hero-copy .lead {
  max-width: min(48ch, 100%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-visual .logo-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-visual .logo-card img {
  height: auto;
  max-height: 200px;
  width: auto;
  margin: 0 auto;
}

.section {
  padding: 4rem 1.25rem;
}

@media (max-width: 640px) {
  .section {
    padding: 2.75rem 1rem;
  }
}
.section.alt {
  background: linear-gradient(180deg, rgba(252, 232, 240, 0.55) 0%, var(--white) 100%);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}
.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.two-col h3 {
  margin-top: 0;
  font-size: 1.25rem;
}
.two-col p {
  color: var(--text-muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 1.75rem;
  color: var(--brand);
  line-height: 1.2;
}
.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.grid-areas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.grid-project-moments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.grid-project-moments--page {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.project-moment-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.project-moment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}
.project-moment-img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.grid-project-moments--page .project-moment-img {
  height: 220px;
}
.project-moments-more {
  margin: 1.25rem 0 0;
  text-align: center;
}

.grid-project-gallery-preview .project-gallery-area-card__title {
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}
.project-gallery-area-card__media {
  display: block;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}
.project-gallery-preview-img,
.project-gallery-preview-video {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  vertical-align: bottom;
  background: #111;
}
.project-gallery-area-card__empty {
  margin: 0 0 0.75rem;
  min-height: 3rem;
  font-size: 0.88rem;
}
.project-gallery-area-card__cta {
  margin: 0;
  font-size: 0.88rem;
}
.project-gallery-area-section {
  scroll-margin-top: 5rem;
}
.project-gallery-area-heading {
  font-size: 1.3rem;
  margin: 0 0 0.35rem;
}
.section-head--tight {
  margin-bottom: 1.25rem;
}
.project-gallery-area-empty {
  margin: 0;
}
.project-moment-card--video {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
}
.gallery-area-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 480px);
}
.rac-pg-area {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.rac-pg-area:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.rac-pg-summary {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  max-width: 52rem;
}
.rac-pg-thumb-video {
  object-fit: cover;
  background: #111;
}
.rac-pg-file-list {
  margin-top: 1rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.projects-grid > .card {
  min-width: 0;
}
.project-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.project-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card.project-card:has(.project-media),
.card.project-card.project-card-has-visual {
  overflow: hidden;
  padding-top: 0;
}

.cta-band {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: 1.65rem;
}
.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 520px;
  opacity: 0.95;
}
.cta-band .btn-primary {
  background: var(--white);
  color: var(--brand);
}
.cta-band .btn-primary:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-box h3 {
  margin-top: 0;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}
.contact-list strong {
  color: var(--text);
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

/* Contact & meetings — pink + black typography */
.page-main--contact .page-title {
  color: var(--brand);
}

.page-main--contact .page-lead {
  color: var(--text);
}

.page-main--contact .page-lead strong {
  color: var(--brand-dark);
}

.page-main--contact .contact-box-title {
  color: var(--brand);
  border-bottom: 2px solid rgba(217, 27, 92, 0.25);
  padding-bottom: 0.35rem;
  margin-top: 0;
}

.page-main--contact .contact-list li {
  color: var(--text);
}

.page-main--contact .contact-list strong {
  color: var(--brand);
}

.page-main--contact .contact-list a {
  color: var(--brand-dark);
  font-weight: 600;
}

.page-main--contact .contact-list a:hover {
  color: var(--brand);
}

.page-main--contact .contact-resources-note,
.page-main--contact .contact-hint {
  color: var(--text-muted);
}

.page-main--contact .contact-resources-note a {
  color: var(--brand-dark);
  font-weight: 600;
}

.page-main--contact .contact-resources-note a:hover {
  color: var(--brand);
}

.page-main--contact .contact-resources-note strong {
  color: var(--brand);
  font-weight: 700;
}

.page-main--contact .section.page-hero {
  background: linear-gradient(
    135deg,
    rgba(252, 232, 240, 0.55) 0%,
    var(--white) 48%,
    rgba(255, 255, 255, 0.92) 100%
  );
  border-bottom: 1px solid rgba(228, 220, 224, 0.85);
}

.page-main--contact .highlight-box {
  border-color: rgba(217, 27, 92, 0.22);
  background: linear-gradient(135deg, var(--white) 0%, var(--brand-soft) 100%);
}

.page-main--contact .highlight-box .contact-box-title {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-main--contact .highlight-box p {
  color: var(--text);
}

.note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.site-footer {
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--white) 72%);
  color: var(--text);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
  font-size: 0.88rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.site-footer a {
  color: var(--brand-dark);
  font-weight: 600;
}
.site-footer a:hover {
  color: var(--brand);
}
.footer-legal {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(228, 220, 224, 0.95);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-brand-name {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.footer-brand-line {
  margin: 0;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: flex-end;
  align-items: center;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero--text-only .hero-inner {
    text-align: left;
  }
  .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-lead-tight {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-inline-links {
    text-align: center;
  }
  .hero--text-only .hero-inline-links {
    text-align: left;
  }
  .hero-actions {
    justify-content: center;
  }
  .two-col,
  .contact-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 2;
  }

  #mainNav {
    position: relative;
    z-index: 1;
  }

  .nav-list {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--nav-h);
    bottom: auto;
    max-height: min(72vh, calc(100vh - var(--nav-h) - 1rem));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    backdrop-filter: blur(16px) saturate(1.15);
    flex-direction: column;
    flex-wrap: nowrap;
    max-width: none;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0.75rem 1.25rem max(1rem, env(safe-area-inset-bottom, 0px));
    margin: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow:
      0 18px 44px rgba(25, 18, 22, 0.14),
      0 0 0 1px rgba(228, 220, 224, 0.6);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
  }
  .nav-list.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  /* Keep club name on small screens; hide long tagline to save space */
  .brand-tagline {
    display: none;
  }
  .nav-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.35rem 0.25rem;
    font-size: 0.95rem;
  }
  .nav-list .btn.btn-primary {
    min-height: 44px;
    justify-content: center;
  }
  .hero-inner {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
  }
  .site-header .header-inner {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
  .home-recent-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin / upload page */
.admin-body .nav-list {
  position: static;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  flex-direction: row;
  box-shadow: none;
  border: 0;
  padding: 0;
}
.admin-body .nav-toggle {
  display: none;
}

.rac-simple-inner {
  max-width: 520px;
  margin: 0 auto;
}

.rac-admin-logged .rac-simple-inner {
  max-width: min(1040px, calc(100vw - 2.5rem));
}

.rac-simple-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.rac-simple-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.rac-simple-upload .rac-simple-inner .alert:first-of-type {
  margin-bottom: 1rem;
}

.rac-simple-h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.rac-login-card.rac-login-card {
  margin-top: 0.25rem;
}

.rac-label-soft {
  font-weight: 500;
}

.rac-field-hint {
  margin: -0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.rac-simple-help {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.rac-admin .admin-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.rac-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rac-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.rac-input,
.rac-textarea,
.rac-file {
  font: inherit;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
}
.rac-textarea {
  resize: vertical;
  min-height: 100px;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 500;
}
.alert-success {
  background: #e8f7ef;
  color: #1b5c3a;
  border: 1px solid #b8e0c8;
}
.alert-error {
  background: #fdeef0;
  color: #8c1b2d;
  border: 1px solid #f0b8c4;
}

.admin-project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-project-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.admin-project-row:last-child {
  border-bottom: 0;
}
.admin-project-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.btn-danger-text {
  border-color: transparent;
  color: #a31830;
  padding-left: 0;
  padding-right: 0;
  align-self: flex-start;
}
.btn-danger-text:hover {
  background: transparent;
  text-decoration: underline;
  color: #7a1224;
}

.project-media {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  margin: -1.5rem -1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--brand-soft);
}
.project-media:not(.project-media--embed):not(.project-media--file) img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-media--embed {
  aspect-ratio: 16 / 9;
  margin: -1.5rem -1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #111;
}

.project-media--embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.project-media--file {
  aspect-ratio: 16 / 9;
  margin: -1.5rem -1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #111;
}

.project-media--file video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.project-link-wrap {
  margin: 0 1.5rem 1.25rem;
}

.project-card:not(.project-card-has-visual) .project-link-wrap {
  margin-top: 0;
}

a.project-media.project-media--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-title-link {
  margin: 0 1.5rem 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.project-title-link a {
  color: var(--text);
  text-decoration: none;
}

.project-title-link a:hover {
  color: var(--brand);
}

.project-spc-wrap {
  margin-top: 0.75rem;
}

.project-extra-link-wrap {
  margin-top: 0.5rem;
}

.project-spc-cta {
  width: 100%;
  text-align: center;
}

.admin-thumb-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-thumb-fallback {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 8px;
  background: var(--brand-soft);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
}
.highlight-box {
  background: var(--brand-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 0;
}
.highlight-box p {
  margin: 0;
  color: var(--text);
}
.projects-grid-dynamic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .projects-grid-dynamic {
    grid-template-columns: 1fr;
  }
}

/* Club credentials block */
.creds-box {
  margin-top: 1rem;
}

.btn-sm-doc {
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
}

/* Public members grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.member-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(217, 27, 92, 0.12);
}

.member-card-photo {
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--brand-soft) 0%, var(--white) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.member-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card-initials {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.05em;
}

.member-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.member-card-name {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.member-card-role {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.member-card-portfolio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.member-card-link {
  width: 100%;
  justify-content: center;
}

/* Admin dashboard */
.dash-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #faf8f9 0%, var(--white) 40%);
}

.dash-header .header-inner {
  max-width: var(--max);
}

.dash-top-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.dash-top-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.dash-top-nav a:hover {
  color: var(--brand);
}

.dash-main {
  padding: 2rem 1.25rem 4rem;
}

.dash-wrap {
  max-width: min(1100px, calc(100vw - 2.5rem));
  margin: 0 auto;
}

.dash-login-panel {
  max-width: 420px;
  margin: 2rem auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.dash-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.dash-sub {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.dash-login-form .btn-wide {
  width: 100%;
}

.dash-hero {
  margin-bottom: 2rem;
}

.dash-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.dash-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.dash-stat-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}

.dash-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 640px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .dash-stats {
    grid-template-columns: 1fr;
  }
}

.dash-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dash-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 27, 92, 0.35);
  box-shadow: 0 16px 40px rgba(217, 27, 92, 0.14);
  text-decoration: none;
}

.dash-card-accent {
  border-left: 4px solid var(--brand);
}

.dash-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.dash-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.dash-card-desc {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.dash-card-cta {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand);
}

.dash-resources {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.dash-section-title {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.dash-doc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dash-resources-hint {
  margin: 0.9rem 0 0;
  max-width: 40rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.dash-resources-hint a {
  font-weight: 600;
  color: var(--brand-dark);
}

.dash-doc-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
}

.dash-doc-pill:hover {
  background: var(--brand);
  color: var(--white);
  text-decoration: none;
}

.dash-doc-missing {
  opacity: 0.75;
  font-size: 0.85rem;
}

/* Manage members admin */
.rac-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
}

.admin-member-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-member-row {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.admin-member-row:last-child {
  border-bottom: 0;
}

.admin-member-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-member-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  font-weight: 700;
  color: var(--brand);
}

.admin-member-meta {
  flex: 1;
  min-width: 0;
}

.admin-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
}

.admin-inline-form {
  display: inline;
}

.member-edit-preview {
  margin: 0.5rem 0 0;
}

/* Nav current page */
.nav-current a {
  color: var(--brand);
  font-weight: 600;
}

/* Inner pages */
.page-main {
  min-height: 50vh;
}

.page-main:not(.page-main--home) .section.page-hero {
  padding-top: 3rem;
  padding-bottom: 2.75rem;
}

.section-inner--narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-inner--center-narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-cta-lead {
  margin: 0;
  font-size: 1rem;
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
}

.get-involved-cta {
  margin-top: 2rem;
}

.get-involved-cta h2 {
  font-size: 1.35rem;
}

.note--center {
  text-align: center;
  margin-top: 1.5rem;
}

.focus-areas-footnote {
  text-align: center;
  margin: 2rem auto 0;
  max-width: 640px;
}

.focus-card-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.contact-hint {
  opacity: 0.8;
  font-size: 0.92em;
}

.gallery-hero-actions {
  margin-top: 1rem;
}

.gallery-album-url-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.about-charter-action {
  margin: 0.75rem 0 0;
}

.about-follow-text {
  margin-top: 1rem;
}

.about-aside-heading {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.highlight-box__tight {
  margin: 0;
}

.page-hero .page-title {
  margin-top: 0;
}

.page-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-lead {
  max-width: 52ch;
  margin-bottom: 0;
}

.page-hero .page-lead {
  margin-top: 0;
}

/* Compact homepage hero */
.hero--compact .hero-inner {
  padding: 2.25rem 1.25rem 2.75rem;
  gap: 1.75rem;
}

.hero--compact .hero-headline {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
}

.hero--compact .hero-visual .logo-card {
  padding: 1.5rem 2rem;
}

.hero--compact .hero-visual .logo-card img {
  max-height: 140px;
}

/* Home — Rotaract history, Four-Way Test, purpose (below hero) */
.home-rotaract-basics {
  padding-top: 2.25rem;
  padding-bottom: 2.5rem;
}

.home-rb-head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 2rem;
}

.home-rb-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}

.home-rb-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.home-rb-lead a {
  font-weight: 600;
}

.home-rb-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

.home-rb-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-rb-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.home-rb-card--test-feature {
  margin-bottom: 0.25rem;
  border-left: 4px solid var(--brand);
  background: linear-gradient(
    142deg,
    var(--white) 0%,
    rgba(252, 232, 240, 0.65) 42%,
    var(--white) 100%
  );
}

.home-rb-card--test {
  border-left: 4px solid var(--brand);
}

.home-rb-test-intro {
  max-width: 68rem;
}

.home-rb-test-subhead {
  margin: 1.1rem 0 0.65rem;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.home-rb-test-questions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.home-rb-test-questions li {
  margin: 0;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  border: 1px solid rgba(228, 220, 224, 0.85);
  border-left: 4px solid var(--brand);
  font-size: 0.96rem;
  line-height: 1.45;
  color: var(--text);
}

.has-site-bg .home-rb-test-questions li {
  background: rgba(255, 255, 255, 0.96);
}

.home-rb-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.home-rb-card-text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text);
}

.home-rb-card-text + .home-rb-card-text {
  margin-top: 0.85rem;
}

.home-rb-card-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.home-rb-card-note a {
  font-weight: 600;
}

.home-rb-card-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.home-rb-test-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}

.home-rb-test-list li {
  margin-bottom: 0.45rem;
}

.home-rb-test-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .home-rb-grid--two {
    grid-template-columns: 1fr;
  }
}

.home-rb-sources {
  margin: 1.75rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  max-width: 56rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.home-rb-sources a {
  font-weight: 600;
}

/* Homepage quick links */
.home-quicklinks-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.home-quicklinks-heading {
  margin: 0 0 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-muted);
}

.home-quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.home-quicklinks--compact {
  max-width: 800px;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-qcard {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.35rem 1.25rem;
  background: var(--white);
  border: 1px solid rgba(228, 220, 224, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s ease;
}

.home-qcard:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-2px);
}

.home-qcard-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.home-qcard-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Members block on home */
.section-members-home .members-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.section-home-cta {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* Gallery page */
.gallery-page-hero .page-lead {
  max-width: 58ch;
}

.btn-gallery-main {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

.gallery-section-heading {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
}

.gallery-section-lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.gallery-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-theme-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.gallery-theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(217, 27, 92, 0.14);
  border-color: rgba(217, 27, 92, 0.35);
  text-decoration: none;
}

.gallery-theme-visual {
  min-height: 140px;
  background-size: cover;
  background-position: center;
}

.gallery-visual--investiture {
  background-image: linear-gradient(135deg, #d91b5c 0%, #7c1d4a 50%, #2d1328 100%);
}

.gallery-visual--award {
  background-image: linear-gradient(135deg, #f4c430 0%, #d91b5c 45%, #5c1440 100%);
}

.gallery-visual--fundraising {
  background-image: linear-gradient(135deg, #1a8f7a 0%, #2eb89a 40%, #0d3d36 100%);
}

.gallery-theme-body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.gallery-theme-title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: var(--text);
}

.gallery-theme-desc {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.gallery-theme-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
}

.gallery-note-box {
  margin-top: 2rem;
}

.gallery-note-box code {
  font-size: 0.85em;
  background: rgba(217, 27, 92, 0.08);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .home-quicklinks--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Home hero — motto */
.hero-motto {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: min(44ch, 100%);
  line-height: 1.55;
}

/* Recent projects strip on home */
.home-recent-projects {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.home-recent-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.home-recent-projects-more {
  text-align: center;
  margin: 2rem 0 0;
}

/* Gallery — local albums */
.gallery-general-section {
  padding-top: 0;
}

.gallery-album-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.gallery-album-head {
  margin-bottom: 1.5rem;
}

.gallery-album-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.02em;
}

.gallery-album-desc {
  margin: 0;
  color: var(--text-muted);
  max-width: 52ch;
}

.gallery-masonry {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.gallery-masonry__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--brand-soft);
  line-height: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-masonry__btn:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.gallery-masonry__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-theme-fallback {
  min-height: 120px;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.gallery-lightbox {
  max-width: min(96vw, 1100px);
  padding: 0;
  border: none;
  background: transparent;
}

.gallery-lightbox::backdrop {
  background: rgba(20, 18, 20, 0.88);
}

.gallery-lightbox__img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
  margin: 0 auto;
}

.gallery-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 0;
  background: var(--white);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.gallery-hero-actions--secondary {
  margin-top: 0.75rem;
}

.btn-gallery-secondary {
  font-size: 0.92rem;
}

/* Public forms */
.rac-form--public {
  max-width: 520px;
}

.rac-form--public .rac-textarea {
  min-height: 120px;
  resize: vertical;
}

.rac-label-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.rac-form-projects .rac-upload-primary {
  margin: 1.75rem 0 1.25rem;
  padding: 1.35rem 1.25rem;
  background: rgba(252, 232, 240, 0.65);
  border: 1px solid rgba(217, 27, 92, 0.2);
  border-radius: var(--radius-lg);
}

.rac-upload-primary-title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

.rac-upload-secondary {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border);
}

.rac-upload-secondary-title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.rac-file-pick {
  padding: 0.5rem 0;
}

.rac-form--inline .events-rsvp__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
  margin-top: 1rem;
}

.rac-form--inline .rac-input {
  flex: 1 1 140px;
  min-width: 0;
}

/* Events */
.events-section-title {
  margin: 2.5rem 0 1rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.events-section-title:first-of-type {
  margin-top: 0;
}

.events-section-title--past {
  margin-top: 3rem;
}

.events-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.events-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.events-card--past {
  opacity: 0.92;
}

.events-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.events-card__meta {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
}

.events-card__loc {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.events-card__sum {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.events-empty {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* Contact extras */
.contact-whatsapp-box {
  margin-top: 2rem;
}

.contact-whatsapp-cta {
  margin-top: 1rem;
}

.contact-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

/* Donate */
.donate-purposes {
  margin-bottom: 1.5rem;
}

.donate-bank-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem 1.75rem;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.donate-bank-card__brand {
  margin-bottom: 1.25rem;
}

.donate-bank-logo {
  height: 48px;
  width: auto;
  max-width: 200px;
}

.donate-bank-card__title {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.donate-bank-details {
  margin: 0;
}

.donate-bank-row {
  display: grid;
  grid-template-columns: minmax(8rem, 120px) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(228, 220, 224, 0.85);
  align-items: start;
}

.donate-bank-row:last-of-type {
  border-bottom: 0;
}

.donate-bank-row dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.donate-bank-row dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.donate-bank-row--accent dd {
  font-size: 1.05rem;
}

.donate-bank-acct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.donate-bank-number {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--brand-dark);
}

.donate-copy-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.donate-bank-hint {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.donate-disclaimer {
  margin-top: 2rem;
}

@media (max-width: 480px) {
  .donate-bank-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* Admin membership list */
.membership-app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.membership-app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.membership-app-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: baseline;
}

.membership-app-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.membership-app-line {
  margin: 0.35rem 0;
  font-size: 0.92rem;
}

.membership-app-line span {
  display: inline-block;
  min-width: 5.5rem;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.membership-app-msg {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Past presidents (past-presidents.php) */
.past-presidents-section {
  padding-top: 0;
}

.past-presidents-current {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--brand);
  background: rgba(255, 255, 255, 0.55);
}

.has-site-bg .past-presidents-current {
  background: rgba(255, 255, 255, 0.72);
}

.rac-presidents-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
}

.has-site-bg .rac-presidents-wrap {
  background: rgba(255, 255, 255, 0.88);
}

.rac-presidents-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.rac-presidents-table th,
.rac-presidents-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.rac-presidents-table tbody tr:last-child td {
  border-bottom: none;
}

.rac-presidents-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.rac-presidents-year {
  white-space: nowrap;
  font-weight: 600;
  color: var(--brand);
  width: 1%;
}

.rac-presidents-theme {
  font-size: 0.94rem;
  line-height: 1.45;
  max-width: 22rem;
}

.past-presidents-current-theme {
  font-weight: 500;
}

.past-presidents-theme-label {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.past-presidents-source {
  margin-top: 1rem;
  max-width: 40rem;
}

.past-presidents-foot {
  margin-top: 1.25rem;
}
