:root {
  --brand-primary: #e81018;
  --brand-primary-dark: #b9070d;
  --brand-secondary: #111111;
  --brand-accent: #ffffff;
  --brand-bg: #f7f7f5;
  --brand-surface: #ffffff;
  --brand-text: #171717;
  --brand-muted: #666666;
  --brand-border: #dedede;
  --brand-radius: 12px;
  --shell: 1440px;
  --font-ui:
    Montserrat, Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Arial Narrow", "Roboto Condensed", Impact, var(--font-ui);
  --shadow-soft: 0 10px 32px
    color-mix(in srgb, var(--brand-secondary) 8%, transparent);
  --shadow-card: 0 2px 10px
    color-mix(in srgb, var(--brand-secondary) 5%, transparent);
}

:root :is(#gform_wrapper_2, #gform_wrapper_3)[data-form-index="0"].gform-theme {
  --gf-color-primary: var(--brand-primary);
}
:root #gform_wrapper_3[data-form-index="0"].gform-theme {
  --gf-color-primary-rgb: 232, 16, 24;
  --gf-color-in-ctrl-primary: var(--brand-primary);
  --gf-color-in-ctrl-primary-rgb: 232, 16, 24;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--brand-bg);
  color: var(--brand-text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
}
body.menu-open {
  overflow: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--brand-primary);
}
button,
input,
textarea,
select {
  font: inherit;
}
svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.icon {
  display: inline-flex;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.16em;
  flex: 0 0 auto;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed !important;
  width: auto;
  height: auto;
  clip: auto;
  top: 10px;
  left: 10px;
  z-index: 99999;
  background: var(--brand-surface);
  color: var(--brand-secondary);
  padding: 10px 14px;
}
.site-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}
.content-shell {
  max-width: 980px;
}
.section-pad {
  padding: 68px 0;
}
.section-pad-sm {
  padding: 28px 0;
}
.site-main {
  background: var(--brand-bg);
}
.page-section {
  background: var(--brand-bg);
}
.page-section--surface {
  background: var(--brand-surface);
  border-block: 1px solid var(--brand-border);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-primary);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prose {
  font-size: 1.05rem;
}
.prose > *:first-child {
  margin-top: 0;
}
.prose a {
  color: var(--brand-primary);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.05;
}
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(3.25rem, 3.7vw, 6.4rem);
}
h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}
h3 {
  font-size: 1.12rem;
}
p {
  margin: 0 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
.button .icon {
  width: 1.05rem;
  height: 1.05rem;
}
.button:hover {
  transform: translateY(-1px);
}
.button--primary {
  color: var(--brand-accent);
  background: var(--brand-primary);
  box-shadow: 0 8px 18px
    color-mix(in srgb, var(--brand-primary) 22%, transparent);
}
.button--primary:hover {
  color: var(--brand-accent);
  background: var(--brand-primary-dark);
}
.button--outline {
  background: transparent;
  color: var(--brand-secondary);
  border-color: var(--brand-secondary);
}
.button--outline:hover {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
.button--outline-primary {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.button--outline-primary:hover {
  background: var(--brand-primary);
  color: var(--brand-accent);
}
.button--dark {
  background: var(--brand-secondary);
  color: var(--brand-accent);
  border-color: var(--brand-secondary);
}
.button--dark:hover {
  color: var(--brand-accent);
  background: color-mix(
    in srgb,
    var(--brand-secondary) 88%,
    var(--brand-surface)
  );
}
.button--outline-light {
  color: var(--brand-accent);
  border-color: color-mix(in srgb, var(--brand-accent) 90%, transparent);
}
.button--outline-light:hover {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-primary);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.text-link .icon {
  width: 1rem;
  height: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--brand-surface) 96%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--brand-border);
}
.site-header__inner {
  min-height: 80px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--brand-secondary);
}
.site-logo img,
.site-logo .custom-logo {
  width: auto;
  max-height: 52px;
}
.site-logo__fallback {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.primary-nav {
  justify-self: center;
}
.primary-menu,
.primary-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}
.primary-menu a {
  display: block;
  padding: 29px 0 24px;
  color: var(--brand-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  border-bottom: 3px solid transparent;
}
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu a:hover {
  color: var(--brand-secondary);
  border-bottom-color: var(--brand-primary);
}
.primary-menu .menu-item-has-children {
  position: relative;
}
.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: -18px;
  min-width: 220px;
  padding: 10px 16px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.18s ease;
}
.primary-menu .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-menu .sub-menu a {
  padding: 10px 0;
  border: 0;
}
.site-header__cta {
  min-width: 170px;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle > span:not(.screen-reader-text) {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand-secondary);
  margin: 6px 0;
}

/* Home hero */

/* Top stats */
.stats-strip {
  background: var(--brand-surface);
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 24px 32px;
  border-right: 1px solid var(--brand-border);
}
.stat-item:last-child {
  border-right: 0;
}

.stat-item strong {
  display: block;
  color: var(--brand-primary);
  font-size: 1.55rem;
  line-height: 1.05;
}
.stat-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
  line-height: 1.25;
}

/* Home stories + form */
.stories-form-section,
.impact-section {
  background: var(--brand-bg);
}
.two-col-layout {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 52px;
  align-items: start;
}
.section-heading-row {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading-row h2 {
  margin: 0;
}
.section-heading-row > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-primary);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-heading-row > a .icon {
  width: 0.95rem;
  height: 0.95rem;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.story-grid--archive {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.story-card {
  overflow: hidden;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: calc(var(--brand-radius) * 0.8);
  box-shadow: var(--shadow-card);
}
.story-card__image {
  display: block;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  background: color-mix(in srgb, var(--brand-border) 65%, var(--brand-surface));
}
.story-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.story-card:hover .story-card__image img {
  transform: scale(1.025);
}
/* Text-only story (no featured image): red top rule in place of the photo. */
.story-card--text {
  border-top: 4px solid var(--brand-primary);
}
.story-card--text .story-card__body {
  padding-top: 22px;
}
.story-card__body {
  padding: 16px 16px 14px;
}
.story-card__body h3 {
  margin-bottom: 10px;
  line-height: 1.3;
}
.story-card__body h3 a:hover {
  color: var(--brand-primary);
}
.story-card__name_loc {
  font-weight: 700;
  color: var(--brand-primary);
}

.story-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.7rem;
}
.story-card__meta > span {
  color: var(--brand-primary);
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.story-card__meta .icon {
  width: 0.9rem;
  height: 0.9rem;
}
.story-card__meta a {
  font-weight: 800;
}
.story-form-panel {
  position: sticky;
  top: 102px;
  background: var(--brand-primary);
  padding: 24px 28px 28px;
  border-radius: calc(var(--brand-radius) * 1.1);
  box-shadow: var(--shadow-soft);
  color: var(--brand-accent);
}
.story-form-panel > h2 {
  color: var(--brand-accent);
  margin-bottom: 16px;
}
.story-form-panel__inner {
  background: var(--brand-surface);
  color: var(--brand-text);
  border-radius: calc(var(--brand-radius) * 0.7);
  padding: 18px;
}
.story-form-panel--page {
  position: static;
}

.story-form-panel .gform_wrapper {
  margin: 0;
}
.story-form-panel .gform_wrapper .gform_fields {
  gap: 10px !important;
}
.story-form-panel
  .gform_wrapper
  input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.story-form-panel .gform_wrapper textarea,
.story-form-panel .gform_wrapper select {
  border: 1px solid var(--brand-border) !important;
  border-radius: calc(var(--brand-radius) * 0.45) !important;
  min-height: 44px;
  background: var(--brand-surface) !important;
  color: var(--brand-text) !important;
}
.story-form-panel .gform_wrapper textarea {
  min-height: 98px;
}
.story-form-panel .gform_wrapper .gform_button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: calc(var(--brand-radius) * 0.45);
  background: var(--brand-secondary);
  color: var(--brand-accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}
.story-form-panel .gform_wrapper .gfield_label {
  font-size: 0.74rem;
  font-weight: 800;
}
/* Consent note: plain hint text lined up with the checkbox label, not a scroll box. */
.story-form-panel .gform_wrapper .gfield_consent_description {
  border: 0;
  max-height: none;
  overflow: visible;
  padding: 0 0 0 calc(var(--gf-ctrl-choice-size, 20px) + 12px);
  margin-block-start: 6px;
}
.story-form-panel .gform_wrapper .gfield_consent_description_text {
  border: 0;
  padding: 0;
  max-height: none;
  overflow: visible;
} /* Gravity Forms 3.x draws the box here. */
.story-form-panel
  .gform_wrapper
  :is(.gfield_description, .gfield_consent_label)
  a {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* Impact showcase */
.impact-section {
  border-top: 1px solid var(--brand-border);
}
.impact-showcase {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 18px;
}
.impact-feature {
  display: grid;
  grid-template-columns: 55fr 45fr;
  background: var(--brand-surface);
  border-radius: calc(var(--brand-radius) * 0.8);
  overflow: hidden;
  min-height: 275px;
}
.impact-feature__image {
  min-height: 100%;
  display: grid;
  place-items: center;
}
.impact-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.impact-feature__copy {
  padding: 22px;
  align-self: center;
}
.impact-feature__copy h3 {
  font-size: 1.4rem;
  line-height: 1.18;
  margin-bottom: 10px;
}
.impact-feature__copy p:not(.eyebrow) {
  font-size: 0.86rem;
  line-height: 1.5;
}
.impact-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.impact-mini-card {
  overflow: hidden;
  background: var(--brand-surface);
  border: 2px solid rgba(239, 239, 239, 1);
  border-radius: calc(var(--brand-radius) * 0.8);
}
.impact-mini-card__image {
  display: block;
  aspect-ratio: 1.45/1;
}
.impact-mini-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.impact-mini-card__body {
  padding: 15px;
}
.impact-mini-card__body h3 {
  margin-bottom: 8px;
  line-height: 1.2;
}
.impact-mini-card__body p {
  min-height: 42px;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Six statistic row */
.secondary-stats {
  background: var(--brand-surface);
}
.secondary-stats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-radius: var(--brand-radius);
  overflow: hidden;
}
.secondary-stat {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 22px 14px;
}
.secondary-stat:last-child {
  border-right: 0;
}

.secondary-stat strong {
  display: block;
  color: var(--brand-primary);
  font-size: 1.28rem;
  line-height: 1.05;
}
.secondary-stat small {
  display: block;
  margin-top: 4px;
  color: var(--brand-text);
  font-size: 0.6rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Map + social */

.social-panel__copy {
  padding: 25px 20px;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-link {
  transition: transform 0.35s;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: #fff;
  background: var(--brand-primary);
  padding: 7px;
}
.social-link:hover {
  transform: scale(1.1);
}
.social-link--large {
  width: 38px;
  height: 38px;
}

.social-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.social-gallery__item {
  min-height: 98px;
  overflow: hidden;
}
.social-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.social-gallery__item > span {
  width: 100%;
  height: 100%;
  min-height: 98px;
  display: grid;
  place-items: center;
  color: var(--brand-primary);
}
.social-gallery__item .icon {
  width: 2.4rem;
  height: 2.4rem;
  opacity: 0.35;
}

/* Shared footer CTA and footer */
.footer-cta {
  background: var(--brand-primary);
  color: var(--brand-accent);
}
.footer-cta__inner {
  min-height: 112px;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 26px;
  align-items: center;
}
.footer-cta__heart {
  color: var(--brand-accent);
}
.footer-cta__heart .icon {
  width: 5.8rem;
  height: 5.8rem;
}
.footer-cta__heart svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.footer-cta h2 {
  margin: 0;
  color: var(--brand-accent);
  font-size: 2rem;
}
.site-footer {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: 58px;
  padding-top: 40px;
  padding-bottom: 28px;
}
.site-logo--footer {
  color: var(--brand-accent);
  margin-bottom: 10px;
}
.site-footer__brand p {
  max-width: 280px;
  color: color-mix(in srgb, var(--brand-accent) 72%, var(--brand-secondary));
  font-size: 0.78rem;
}
.site-footer__menus {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.footer-menu-block h2 {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-menu-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-menu-block li {
  margin: 6px 0;
}
.footer-menu-block a {
  color: color-mix(in srgb, var(--brand-accent) 82%, var(--brand-secondary));
  font-size: 0.75rem;
}
.footer-menu-block a:hover {
  color: var(--brand-primary);
}
.site-footer .social-link {
  color: var(--brand-accent);
}
.site-footer__bottom {
  border-top: 1px solid
    color-mix(in srgb, var(--brand-accent) 14%, var(--brand-secondary));
  padding: 16px 0;
  color: color-mix(in srgb, var(--brand-accent) 55%, var(--brand-secondary));
  font-size: 0.7rem;
}
.site-footer__bottom p {
  margin: 0;
}

/* Internal page hero */
.page-hero {
  background: var(--brand-surface);
  border-bottom: 1px solid var(--brand-border);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.85fr);
  gap: 58px;
  align-items: center;
}
.page-hero__grid--no-image {
  grid-template-columns: minmax(0, 900px);
}
.page-hero h1 {
  max-width: 850px;
  margin-bottom: 18px;
}
.page-hero__intro {
  max-width: 760px;
  font-size: 1.15rem;
  color: var(--brand-muted);
}
.page-hero__image {
  overflow: hidden;
  border-radius: var(--brand-radius);
  aspect-ratio: 1.65/1;
  background: var(--brand-bg);
}
.page-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Internal grids */

.impact-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 30px;
  box-shadow: var(--shadow-card);
}
.pillar-card > .icon {
  width: 2.8rem;
  height: 2.8rem;
  color: var(--brand-primary);
  margin-bottom: 18px;
}
.pillar-card h3 {
  font-size: 1.25rem;
}
.form-page-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.form-page-grid > div:first-child {
  padding-top: 30px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  margin: 13px 0;
}
.check-list li::before {
  content: "♥";
  position: absolute;
  left: 0;
  color: var(--brand-primary);
}
.number-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.number-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 30px;
}

.number-card strong {
  display: block;
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-size: 2.7rem;
  line-height: 1;
}
.number-card h3 {
  margin: 10px 0 8px;
  text-transform: uppercase;
}
.number-card p {
  margin: 0;
  color: var(--brand-muted);
}
.content-two-col {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.action-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.action-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.action-card > .icon {
  color: var(--brand-primary);
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 18px;
}
.action-card h2 {
  font-size: 1.6rem;
}
.action-card p {
  flex: 1;
}
.event-card-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.event-card,
.news-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  overflow: hidden;
}
.event-card__image,
.news-card__image {
  aspect-ratio: 1.6/1;
  background: var(--brand-bg);
  display: grid;
  place-items: center;
  color: var(--brand-primary);
}
.event-card__image img,
.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-card__image .icon {
  width: 3rem;
  height: 3rem;
  opacity: 0.4;
}
.event-card__body,
.news-card__body {
  padding: 20px;
}
.news-card__body h2 {
  font-family: var(--font-ui);
  text-transform: none;
  font-size: 1.25rem;
  line-height: 1.25;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.sitemap-grid > div {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 26px;
}
.sitemap-grid ul {
  padding-left: 20px;
}
.sitemap-grid li {
  margin: 8px 0;
}

/* Generic content */
.content-entry,
.archive-header {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: clamp(26px, 4vw, 58px);
}
.content-entry + .content-entry {
  margin-top: 24px;
}
.entry-header h1,
.archive-header h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: 22px;
}
.entry-featured {
  margin: 24px 0 32px;
  overflow: hidden;
  border-radius: var(--brand-radius);
}
.entry-featured img {
  width: 100%;
}
.entry-content a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.archive-header {
  margin-bottom: 28px;
}
.archive-description {
  max-width: 760px;
}
.pagination-wrap {
  margin-top: 34px;
}
.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--brand-border);
  background: var(--brand-surface);
  border-radius: calc(var(--brand-radius) * 0.6);
}
.page-numbers.current {
  background: var(--brand-primary);
  color: var(--brand-accent);
  border-color: var(--brand-primary);
}
.empty-state {
  text-align: center;
  padding: 70px 20px;
  background: var(--brand-surface);
  border: 1px dashed var(--brand-border);
  border-radius: var(--brand-radius);
}

/* Single story */

/* Events Calendar / Events Calendar Pro */
.events-shell {
  max-width: 1280px;
}
.tribe-common,
#tribe-events-content,
.tribe-events {
  font-family: var(--font-ui) !important;
  color: var(--brand-text);
}
.tribe-common .tribe-common-c-btn,
.tribe-common a.tribe-common-c-btn,
.tribe-events .tribe-events-c-search__button {
  background: var(--brand-primary) !important;
  color: var(--brand-accent) !important;
  border-radius: calc(var(--brand-radius) * 0.65) !important;
}
.tribe-common .tribe-common-c-btn:hover,
.tribe-common a.tribe-common-c-btn:hover,
.tribe-events .tribe-events-c-search__button:hover {
  background: var(--brand-primary-dark) !important;
}
.tribe-events .tribe-events-calendar-list__event-row,
.tribe-events .tribe-events-calendar-month,
.tribe-events .tribe-events-c-top-bar {
  background: var(--brand-surface);
}
.tribe-events .tribe-events-calendar-list__event-row {
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 18px;
  margin-bottom: 18px !important;
}
.tribe-events .tribe-events-calendar-list__event-title-link,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link {
  color: var(--brand-text) !important;
}
.tribe-events .tribe-events-calendar-list__event-title-link:hover,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link:hover {
  color: var(--brand-primary) !important;
}
.tribe-events .tribe-events-c-view-selector__content,
.tribe-events .tribe-events-c-events-bar {
  border-radius: var(--brand-radius);
}
.event-single .tribe-events-back {
  margin-bottom: 20px;
}
.event-single .tribe-events-back a {
  color: var(--brand-primary);
  font-weight: 800;
}
.event-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
  margin-bottom: 42px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: clamp(28px, 4vw, 55px);
}
.event-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
}
.event-schedule {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--brand-muted);
  font-weight: 700;
}
.event-cost {
  color: var(--brand-primary);
  font-weight: 900;
}
.event-hero__image {
  overflow: hidden;
  border-radius: var(--brand-radius);
}
.event-hero__image img {
  width: 100%;
  display: block;
}
.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 32px;
  align-items: start;
}
.event-content,
.event-meta-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: clamp(24px, 3vw, 42px);
}
.event-meta-card {
  position: sticky;
  top: 105px;
}
.event-meta-card .tribe-events-single-section {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.event-meta-card .tribe-events-meta-group {
  width: 100% !important;
  padding: 0 !important;
  margin-bottom: 20px !important;
}
.event-meta-card a {
  color: var(--brand-primary);
}

@media (max-width: 1240px) {
  .primary-menu {
    gap: 22px;
  }

  .story-grid--archive {
    grid-template-columns: repeat(3, 1fr);
  }
  .secondary-stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .action-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1080px) {
  .site-header__cta {
    display: none;
  }
  .site-header__inner {
    grid-template-columns: auto 1fr;
  }
  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .story-form-panel {
    position: static;
  }
  .impact-showcase {
    grid-template-columns: 1fr;
  }
  .impact-feature {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }
  .page-hero__grid {
    grid-template-columns: 1fr 1fr;
  }
  .impact-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .number-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: min(calc(100% - 32px), var(--shell));
  }
  .section-pad {
    padding: 48px 0;
  }
  .menu-toggle {
    display: block;
    justify-self: end;
  }
  .primary-nav {
    position: fixed;
    inset: 80px 0 auto 0;
    background: var(--brand-surface);
    border-bottom: 1px solid var(--brand-border);
    transform: translateY(-140%);
    opacity: 0;
    visibility: hidden;
    transition: 0.22s ease;
    padding: 18px 24px 28px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .primary-menu {
    display: block;
  }
  .primary-menu a {
    padding: 14px 0;
    border-bottom: 1px solid var(--brand-border);
  }
  .primary-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 18px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: 0;
  }
  .stat-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--brand-border);
  }
  .story-grid,
  .story-grid--archive {
    grid-template-columns: repeat(2, 1fr);
  }
  .impact-mini-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-hero__grid,
  .form-page-grid,
  .content-two-col {
    grid-template-columns: 1fr;
  }
  .page-hero__image {
    max-width: 680px;
  }
  .event-card-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-cta__inner {
    grid-template-columns: 75px 1fr;
    padding-top: 26px;
    padding-bottom: 26px;
  }
  .footer-cta .button-row {
    grid-column: 1 / -1;
  }
  .site-footer__menus {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-hero,
  .event-layout {
    grid-template-columns: 1fr;
  }
  .event-meta-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header__inner {
    min-height: 70px;
  }
  .primary-nav {
    inset: 70px 0 auto 0;
  }
  .site-logo__fallback {
    font-size: 1.55rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .stats-grid,
  .story-grid,
  .story-grid--archive,
  .impact-mini-grid,
  .secondary-stats__grid,
  .impact-pillars,
  .number-cards,
  .action-card-grid,
  .event-card-grid,
  .news-grid,
  .site-footer__menus,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: 0;
    border-bottom: 1px solid var(--brand-border);
    padding-inline: 10px;
  }
  .stat-item:last-child {
    border-bottom: 0;
  }
  .impact-feature {
    grid-template-columns: 1fr;
  }
  .impact-feature__image {
    min-height: 220px;
  }
  .secondary-stat {
    border-right: 0;
    border-bottom: 1px solid var(--brand-border);
  }
  .secondary-stat:last-child {
    border-bottom: 0;
  }

  .social-gallery {
    min-height: 260px;
  }
  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .story-form-panel {
    padding: 16px;
  }
  .footer-cta__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-cta__heart {
    justify-self: center;
  }
  .footer-cta .button-row {
    justify-content: center;
  }
  .site-footer__top {
    gap: 32px;
  }
}

/* Events Calendar Pro view-specific cards */
.tribe-events-pro-photo__event,
.tribe-events-pro-map__event-card,
.tribe-events-pro-summary__event,
.tribe-events-pro-week-grid__event {
  background: var(--brand-surface);
  border-color: var(--brand-border) !important;
  border-radius: var(--brand-radius);
}
.tribe-events-pro-photo__event {
  overflow: hidden;
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-card);
}
.tribe-events-pro-photo__event-title-link,
.tribe-events-pro-map__event-card-event-title-link,
.tribe-events-pro-summary__event-title-link {
  color: var(--brand-text) !important;
}
.tribe-events-pro-photo__event-title-link:hover,
.tribe-events-pro-map__event-card-event-title-link:hover,
.tribe-events-pro-summary__event-title-link:hover {
  color: var(--brand-primary) !important;
}
.tribe-events-pro-photo__event-date-tag,
.tribe-events-pro-map__event-card-button,
.tribe-events-pro-week-grid__event-link {
  color: var(--brand-primary) !important;
}

/* Gutenberg page-builder integration */
:is(.block-page, .is-root-container) > .wp-block-group,
:is(.block-page, .is-root-container) > .wp-block-image,
:is(.block-page, .is-root-container) > .wp-block-buttons,
:is(.block-page, .is-root-container) > p,
:is(.block-page, .is-root-container) > h1,
:is(.block-page, .is-root-container) > h2,
:is(.block-page, .is-root-container) > h3 {
  margin-block-start: 0;
  margin-block-end: 0;
}
:is(.block-page, .is-root-container) .wp-block-image {
  margin: 0;
}
:is(.block-page, .is-root-container) .wp-block-group {
  min-width: 0;
}
:is(.block-page, .is-root-container) .wp-block-heading {
  margin-top: 0;
}
:is(.block-page, .is-root-container) .wp-block-buttons {
  margin: 0;
}
:is(.block-page, .is-root-container) .wp-block-button {
  margin: 0;
  background: transparent;
  box-shadow: none;
}
:is(.block-page, .is-root-container) .wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: calc(var(--brand-radius) * 0.55);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
:is(.block-page, .is-root-container)
  .wp-block-button
  .wp-block-button__link:hover {
  transform: translateY(-1px);
}
:is(.block-page, .is-root-container)
  .wp-block-button.button--primary
  .wp-block-button__link {
  color: var(--brand-accent);
  background: var(--brand-primary);
  box-shadow: 0 8px 18px
    color-mix(in srgb, var(--brand-primary) 22%, transparent);
}
:is(.block-page, .is-root-container)
  .wp-block-button.button--primary
  .wp-block-button__link:hover {
  color: var(--brand-accent);
  background: var(--brand-primary-dark);
}
:is(.block-page, .is-root-container)
  .wp-block-button.button--outline
  .wp-block-button__link {
  background: transparent;
  color: var(--brand-secondary);
  border-color: var(--brand-secondary);
}
:is(.block-page, .is-root-container)
  .wp-block-button.button--outline
  .wp-block-button__link:hover {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
:is(.block-page, .is-root-container)
  .wp-block-button.button--outline-primary
  .wp-block-button__link {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
:is(.block-page, .is-root-container)
  .wp-block-button.button--outline-primary
  .wp-block-button__link:hover {
  background: var(--brand-primary);
  color: var(--brand-accent);
}
:is(.block-page, .is-root-container)
  .wp-block-button.button--dark
  .wp-block-button__link {
  background: var(--brand-secondary);
  color: var(--brand-accent);
  border-color: var(--brand-secondary);
}
:is(.block-page, .is-root-container)
  .wp-block-button.button--outline-light
  .wp-block-button__link {
  background: transparent;
  color: var(--brand-accent);
  border-color: color-mix(in srgb, var(--brand-accent) 90%, transparent);
}
.section-link {
  margin: 0;
  color: var(--brand-primary);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-link a {
  color: var(--brand-primary);
}

/* Gutenberg-built hero collage */

/* Editable Gutenberg stat blocks */
.stat-item__glyph,
.secondary-stat__glyph,
.pillar-card__glyph,
.number-card__glyph,
.action-card__glyph {
  margin: 0;
  color: var(--brand-primary);
  font-family: Georgia, serif;
  line-height: 1;
}
.stat-item__glyph {
  font-size: 2.8rem;
}
.stat-item__value,
.stat-item__label,
.secondary-stat__value,
.secondary-stat__label {
  margin: 0;
}
.stat-item__value strong {
  display: block;
  color: var(--brand-primary);
  font-size: 1.55rem;
  line-height: 1.05;
}
.stat-item__label {
  margin-top: 4px;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
  line-height: 1.25;
}
.secondary-stat__glyph {
  font-size: 2.4rem;
}
.secondary-stat__value strong {
  display: block;
  color: var(--brand-primary);
  font-size: 1.28rem;
  line-height: 1.05;
}
.secondary-stat__label {
  margin-top: 12px;
  color: var(--brand-text);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
.pillar-card__glyph,
.number-card__glyph,
.action-card__glyph {
  font-size: 2.8rem;
  margin-bottom: 18px;
}
.number-card__value {
  margin: 0;
}
.number-card__value strong {
  display: block;
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-size: 2.7rem;
  line-height: 1;
}
.action-card > .wp-block-buttons {
  margin-top: auto;
}

/* Gutenberg image wrappers */
.page-hero__block-image,
.social-gallery__item {
  width: 100%;
  height: 100%;
}
.page-hero__block-image img,
.social-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-gallery .wp-block-image {
  min-height: 98px;
  overflow: hidden;
}

/* Block editor / dynamic block placeholders */
.iloveclubs-editor-placeholder {
  padding: 22px;
  border: 1px dashed var(--brand-border);
  border-radius: var(--brand-radius);
  background: var(--brand-bg);
  color: var(--brand-text);
  display: grid;
  gap: 6px;
}
.iloveclubs-editor-placeholder strong {
  color: var(--brand-primary);
}
.iloveclubs-editor-placeholder span {
  color: var(--brand-muted);
  font-size: 0.9rem;
}

/* FAQ and sitemap blocks */
.faq-stack {
  display: grid;
  gap: 14px;
}
.faq-stack .wp-block-details {
  margin: 0;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 18px 20px;
}
.faq-stack .wp-block-details summary {
  cursor: pointer;
  font-weight: 850;
}
.faq-stack .wp-block-details p {
  margin: 14px 0 0;
  color: var(--brand-muted);
}
.sitemap-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 26px;
}
.sitemap-card .wp-block-page-list {
  margin: 0;
  padding-left: 20px;
}
.sitemap-card li {
  margin: 8px 0;
}

/* WordPress block defaults aligned to theme */
:is(.block-page, .is-root-container) .wp-block-separator {
  border-color: var(--brand-border);
}
:is(.block-page, .is-root-container) .wp-block-details,
:is(.block-page, .is-root-container) .wp-block-quote {
  color: var(--brand-text);
}
:is(.block-page, .is-root-container) a {
  text-underline-offset: 2px;
}

/* ========================================================================
   v4 client brief refinement
   Community-movement visual direction: white-led, warm, people-first,
   strong red actions and minimal black outside typography/navigation/footer.
   ======================================================================== */

body {
  background: var(--brand-surface);
}

.site-main {
  background: var(--brand-surface);
}

/* Header: lighter, cleaner and less corporate. */
.site-header {
  background: color-mix(in srgb, var(--brand-surface) 94%, transparent);
  box-shadow: 0 8px 30px
    color-mix(in srgb, var(--brand-secondary) 4%, transparent);
}
.site-header__inner {
  min-height: 86px;
}
.primary-menu {
  gap: clamp(18px, 2vw, 34px);
}
.primary-menu a {
  font-size: 0.79rem;
  letter-spacing: 0.01em;
}
.site-header__cta {
  min-width: 162px;
}

/* Hero: true 50/50 split with an editorial photographic collage. */

/* Stats are clean and editorial rather than dashboard-like. */
.stats-strip {
  border-block-color: color-mix(in srgb, var(--brand-border) 70%, transparent);
}
.stat-item {
  min-height: 112px;
}
.stat-item__glyph {
  font-size: 3.2rem;
}
.stat-item__value strong {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

/* Story bridge: editorial photo cards inspired by community-story platforms. */

/* The Story form is the main participation moment. */
.stories-form-section {
  background: color-mix(in srgb, var(--brand-bg) 60%, var(--brand-surface));
  border-block: 1px solid
    color-mix(in srgb, var(--brand-border) 65%, transparent);
}
.two-col-layout {
  gap: clamp(30px, 5vw, 74px);
}
.story-form-panel {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--brand-radius) * 1.8);
  box-shadow: 0 24px 60px
    color-mix(in srgb, var(--brand-primary) 18%, transparent);
}
.story-form-panel::before {
  content: "♡";
  position: absolute;
  right: -24px;
  top: -42px;
  color: color-mix(in srgb, var(--brand-accent) 11%, transparent);
  font-family: Georgia, serif;
  font-size: 15rem;
  line-height: 1;
  pointer-events: none;
}
.story-form-panel > * {
  position: relative;
  z-index: 1;
}
.eyebrow--light {
  color: color-mix(in srgb, var(--brand-accent) 82%, transparent);
}

/* Impact section. */
.impact-section {
  background: var(--brand-surface);
}
.impact-showcase {
  gap: 20px;
}
.impact-feature,
.impact-mini-card {
  border-radius: calc(var(--brand-radius) * 1.2);
  overflow: hidden;
}
.impact-feature__copy {
  padding: clamp(27px, 4vw, 27px);
}
.impact-feature__copy h3 {
  font-size: clamp(1.12rem, 2.7vw, 1.4rem);
}
.impact-mini-card__image {
  aspect-ratio: 16 / 10;
}

/* Six impact areas. */
.impact-pillars--six {
  grid-template-columns: repeat(3, 1fr);
}
.impact-pillars--six .pillar-card {
  min-height: 260px;
}

/* Full-width red editorial CTA used inside pages. */
.impact-cta {
  position: relative;
  overflow: hidden;
  background: var(--brand-primary);
  color: var(--brand-accent);
}
.impact-cta::after {
  content: "♡";
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  font-family: Georgia, serif;
  font-size: clamp(8rem, 14vw, 14rem);
  line-height: 1;
  color: color-mix(in srgb, var(--brand-accent) 12%, transparent);
}
.impact-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  min-height: 190px;
}
.impact-cta__copy {
  max-width: 780px;
}
.impact-cta h2 {
  margin-bottom: 8px;
  color: var(--brand-accent);
}
.impact-cta p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--brand-accent) 88%, transparent);
}

/* Numbers page: large but human. */
.number-cards {
  gap: 18px;
}
.number-card {
  min-height: 300px;
  border-radius: calc(var(--brand-radius) * 1.25);
}
.numbers-context__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}
.numbers-context__copy {
  max-width: 560px;
}
.numbers-context__image {
  overflow: hidden;
  border-radius: calc(var(--brand-radius) * 1.5);
  min-height: 460px;
}
.numbers-context__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stories index and map. */
.story-index__top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding-top: 64px;
}
.story-index__intro {
  max-width: 760px;
}
.story-map-section {
  background: color-mix(in srgb, var(--brand-primary) 4%, var(--brand-surface));
  border-top: 1px solid
    color-mix(in srgb, var(--brand-primary) 10%, var(--brand-border));
}
.story-map-section__intro {
  max-width: 740px;
  margin-bottom: 28px;
}

/* Interactive map. Leaflet marker artwork is deliberately replaced with CSS
   circles so no theme-folder marker images are used. */
.iloveclubs-story-map {
  position: relative;
  overflow: hidden;
  min-height: var(--story-map-height);
  border: 1px solid color-mix(in srgb, var(--brand-border) 80%, transparent);
  border-radius: calc(var(--brand-radius) * 1.4);
  background: color-mix(in srgb, var(--brand-bg) 74%, var(--brand-surface));
  box-shadow: var(--shadow-card);
}
.iloveclubs-story-map__canvas {
  width: 100%;
  height: var(--story-map-height);
  min-height: 260px;
}
.iloveclubs-story-map__editor-note {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 500;
  max-width: 380px;
  margin: 0;
  padding: 10px 14px;
  border-radius: calc(var(--brand-radius) * 0.75);
  background: color-mix(in srgb, var(--brand-surface) 94%, transparent);
  box-shadow: var(--shadow-card);
  color: var(--brand-muted);
  font-size: 0.78rem;
}
.leaflet-container {
  font-family: var(--font-ui);
}
.leaflet-control-attribution {
  font-size: 10px;
}
.iloveclubs-map-popup {
  display: grid;
  gap: 6px;
  min-width: 190px;
}
.iloveclubs-map-popup__title {
  color: var(--brand-secondary);
  font-size: 0.92rem;
}
.iloveclubs-map-popup__meta {
  color: var(--brand-muted);
  font-size: 0.75rem;
}
.iloveclubs-map-popup__link {
  color: var(--brand-primary);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* Map + social area deliberately feels like a community noticeboard. */

.social-hashtag {
  margin: -5px 0 16px;
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  text-transform: uppercase;
}

.social-gallery {
  gap: 6px;
}
.social-gallery__item {
  overflow: hidden;
}
.social-gallery__item img {
  transition: transform 0.35s ease;
}
.social-gallery__item:hover img {
  transform: scale(1.045);
}

/* Form pages are warm editorial layouts, not admin-style forms. */
.form-page-intro {
  max-width: 600px;
}
.form-page-intro h2 {
  font-size: clamp(2.7rem, 4vw, 4.6rem);
}
.check-list {
  padding-left: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--brand-border) 70%, transparent);
}
.check-list li::before {
  content: "♥";
  position: absolute;
  left: 0;
  top: 13px;
  color: var(--brand-primary);
}

/* Final global CTA from footer.php is intentionally bold and emotional. */
.footer-cta {
  position: relative;
  overflow: hidden;
  background: var(--brand-primary);
}
.footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0 58%,
    color-mix(in srgb, var(--brand-secondary) 8%, transparent)
  );
  pointer-events: none;
}
.footer-cta__inner {
  position: relative;
  z-index: 1;
}
.footer-cta__heart .icon {
  width: 4.8rem;
  height: 4.8rem;
}
.footer-cta h2 {
  font-size: clamp(2rem, 3vw, 3.3rem);
}

@media (max-width: 1180px) {
  .impact-pillars--six {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .numbers-context__grid {
    grid-template-columns: 1fr;
  }

  .story-index__top {
    align-items: flex-start;
    flex-direction: column;
  }
  .impact-cta__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 30px;
  }
}

@media (max-width: 760px) {
  .impact-pillars--six {
    grid-template-columns: 1fr;
  }
  .numbers-context__image {
    min-height: 320px;
  }
  .impact-cta::after {
    right: -12vw;
  }
}

@media (max-width: 680px) {
  .iloveclubs-story-map,
  .iloveclubs-story-map__canvas {
    min-height: 340px;
    height: var(--story-map-height);
  }
}

/* ========================================================================
   v4.1 Gutenberg content types + responsive dynamic content pass
   - Stories and Club Impacts are separate dynamic post types.
   - Content sections grow with their content; no content max-height is imposed.
   - Cards/grids use minmax() and auto rows so editor-added content can wrap.
   ======================================================================== */

.site-header__mobile-cta {
  display: none;
}

/* Dynamic Story + Club Impact grids */
.story-grid,
.story-grid--archive,
.impact-grid,
.impact-grid--archive,
.impact-mini-grid,
.event-card-grid,
.news-grid,
.impact-pillars,
.number-cards,
.action-card-grid,
.secondary-stats__grid {
  grid-auto-rows: auto;
  min-width: 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.impact-grid--archive {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-card,
.impact-card,
.impact-feature,
.impact-mini-card,
.pillar-card,
.number-card,
.action-card,
.event-card,
.news-card,
.story-form-panel,
.entry-details-card {
  height: auto;
  max-height: none;
  min-width: 0;
}

.story-card__body,
.impact-card__body,
.impact-mini-card__body,
.impact-feature__copy,
.event-card__body,
.news-card__body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.impact-mini-card__body p {
  min-height: 0;
}
.story-form-panel {
  position: relative;
  top: auto;
}

.impact-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: calc(var(--brand-radius) * 1.05);
  box-shadow: var(--shadow-card);
}
.impact-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: color-mix(in srgb, var(--brand-border) 65%, var(--brand-surface));
}
.impact-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.impact-card:hover .impact-card__image img {
  transform: scale(1.025);
}
.impact-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}
.impact-card__body h3 {
  margin: 0 0 10px;
  line-height: 1.25;
}
.impact-card__excerpt {
  color: var(--brand-muted);
}
.impact-card__location {
  margin-top: auto;
  padding-top: 8px;
  color: var(--brand-primary);
  font-size: 0.72rem;
  font-weight: 850;
}
.impact-card__body .text-link {
  margin-top: 12px;
}
.impact-value {
  margin: 0 0 10px;
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}
.impact-value--small {
  font-size: 1rem;
}
.dynamic-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 150px;
  place-items: center;
  color: var(--brand-primary);
}
.dynamic-card__placeholder .icon {
  width: 3.6rem;
  height: 3.6rem;
  opacity: 0.38;
}

/* Gutenberg details blocks used inside Story / Club Impact editing. */
.entry-details-card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 0 0 34px;
  padding: 20px 22px;
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--brand-radius);
  background: color-mix(in srgb, var(--brand-bg) 62%, var(--brand-surface));
}
.entry-details-card__items {
  display: flex;
  flex: 1 1 520px;
  flex-wrap: wrap;
  gap: 18px 30px;
  min-width: 0;
}
.entry-detail {
  display: grid;
  gap: 3px;
  min-width: min(180px, 100%);
}
.entry-detail span {
  color: var(--brand-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.entry-detail strong {
  color: var(--brand-text);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.entry-detail--likes {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-primary);
}
.entry-detail--likes .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.entry-details-card__outcome {
  flex: 1 1 100%;
  margin: 2px 0 0;
  color: var(--brand-muted);
}
.entry-details-card--empty {
  display: block;
  color: var(--brand-muted);
  border-style: dashed;
}

/* Gutenberg-first single Story / Club Impact views. */
.content-entry-hero {
  background: var(--brand-surface);
  border-bottom: 1px solid var(--brand-border);
}
.content-entry-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}
.content-entry-hero__grid--no-image {
  grid-template-columns: minmax(0, 900px);
}
.content-entry-hero__copy {
  min-width: 0;
}
.content-entry-hero__copy h1 {
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}
.content-entry-hero__intro {
  max-width: 720px;
  color: var(--brand-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}
.content-entry-hero__image {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--brand-radius) * 1.35);
  background: var(--brand-bg);
}
.content-entry-hero__image img {
  display: block;
  width: 100%;
  height: auto;
}
.content-entry-body {
  background: var(--brand-surface);
}
.content-entry-body .entry-content {
  max-width: 980px;
}
.content-entry-body .entry-content > * {
  max-width: 100%;
}
.content-entry-body .entry-content img {
  height: auto;
  max-height: none;
}
.content-entry-body .wp-block-image,
.content-entry-body .wp-block-gallery,
.content-entry-body .wp-block-cover,
.content-entry-body .wp-block-columns,
.content-entry-body .wp-block-group {
  max-height: none;
}
.story-lead,
.impact-lead {
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  line-height: 1.55;
}

/* Any normal Gutenberg page section may grow as content is added. */
:is(.block-page, .is-root-container) > .wp-block-group,
:is(.block-page, .is-root-container) .page-section,
:is(.block-page, .is-root-container) .section-pad,
:is(.block-page, .is-root-container) .section-pad-sm,
:is(.block-page, .is-root-container) .stories-form-section,
:is(.block-page, .is-root-container) .impact-section,
:is(.block-page, .is-root-container) .story-map-section,
:is(.block-page, .is-root-container) .impact-cta,
:is(.block-page, .is-root-container) .secondary-stats {
  height: auto;
  max-height: none;
}
:is(.block-page, .is-root-container) .wp-block-group,
:is(.block-page, .is-root-container) .wp-block-columns,
:is(.block-page, .is-root-container) .wp-block-column {
  min-width: 0;
}
:is(.block-page, .is-root-container) p,
:is(.block-page, .is-root-container) h1,
:is(.block-page, .is-root-container) h2,
:is(.block-page, .is-root-container) h3,
:is(.block-page, .is-root-container) h4,
:is(.block-page, .is-root-container) a,
:is(.block-page, .is-root-container) li {
  overflow-wrap: anywhere;
}

/* Gravity Forms and other shortcode-driven embeds must be allowed to grow. */
.story-form-panel__inner,
.story-form-panel .gform_wrapper,
.story-form-panel .gform_body,
.story-form-panel .gform_fields {
  height: auto;
  max-height: none;
  min-width: 0;
}
.story-form-panel
  .gform_wrapper
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.story-form-panel .gform_wrapper textarea,
.story-form-panel .gform_wrapper select {
  width: 100%;
  max-width: 100%;
}

/* Map height remains an editor-controlled value, but is no longer capped on
   smaller screens. Leaflet requires an explicit height to initialise. */
.iloveclubs-story-map,
.iloveclubs-story-map__canvas {
  max-height: none;
}

@media (max-width: 1240px) {
  .impact-grid--archive {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .impact-grid--archive {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .content-entry-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 900px) {
  .site-header__mobile-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 18px;
  }
  .impact-grid,
  .impact-grid--archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-entry-hero__grid {
    grid-template-columns: 1fr;
  }
  .content-entry-hero__image {
    max-width: 760px;
  }
  .two-col-layout > *,
  .form-page-grid > *,
  .content-two-col > * {
    min-width: 0;
  }
  .secondary-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--shell));
  }
  .section-pad {
    padding-block: 44px;
  }
  .section-pad-sm {
    padding-block: 24px;
  }
  .impact-grid,
  .impact-grid--archive {
    grid-template-columns: 1fr;
  }
  .impact-feature {
    grid-template-columns: 1fr;
  }
  .impact-feature__image {
    min-height: 0;
  }
  .impact-feature__copy {
    padding: 24px;
  }
  .entry-details-card {
    padding: 18px;
  }
  .entry-details-card__items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .content-entry-hero__copy h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }
  .secondary-stats__grid {
    grid-template-columns: 1fr;
  }

  .iloveclubs-story-map,
  .iloveclubs-story-map__canvas {
    height: var(--story-map-height);
    min-height: 340px;
    max-height: none;
  }
  .story-form-panel {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .site-shell {
    width: min(calc(100% - 22px), var(--shell));
  }
  .button-row {
    width: 100%;
  }
  .button-row .wp-block-button,
  .button-row .button {
    width: 100%;
  }
  .button-row .wp-block-button__link {
    width: 100%;
  }

  .story-card__body,
  .impact-card__body {
    padding: 16px;
  }
  .footer-cta__inner {
    padding-inline: 6px;
  }
}

/* Rich Gutenberg content safety: client-added media/tables/embeds stay inside
   the viewport without clipping the surrounding section. */
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object,
:is(.block-page, .is-root-container) iframe,
:is(.block-page, .is-root-container) video,
:is(.block-page, .is-root-container) embed,
:is(.block-page, .is-root-container) object {
  max-width: 100%;
}
.entry-content .wp-block-table,
:is(.block-page, .is-root-container) .wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.entry-content table,
:is(.block-page, .is-root-container) table {
  max-width: 100%;
}
.entry-content pre,
:is(.block-page, .is-root-container) pre {
  max-width: 100%;
  overflow-x: auto;
}

/* ========================================================================
   v4.2 — full Gutenberg Story / Club Impact page builder
   The single templates contain no fixed hero/body/CTA markup. Everything
   below is styling for blocks saved in post_content and may be moved/deleted.
   ======================================================================== */

.cpt-builder-content__inner {
  width: min(calc(100% - 48px), 980px);
  max-width: 980px;
  margin-inline: auto;
}
.cpt-builder-content__inner > * {
  max-width: 100%;
}
.cpt-builder-content__inner > .alignwide,
.cpt-builder-content__inner > .alignfull {
  width: 100%;
  max-width: 100%;
}

/* The Story/Impact data block is an actual visible content block rather than
   an editor meta-box imitation. Editors type directly into this block. */

.entry-details-card {
  max-width: 100%;
}

/* Fluid dynamic content: no fixed card/section heights. Images use aspect
   ratios while text areas expand naturally as content changes. */
.story-grid,
.story-grid--archive,
.impact-grid,
.impact-grid--archive,
.impact-mini-grid,
.event-card-grid,
.news-grid,
.impact-pillars,
.number-cards,
.action-card-grid {
  align-items: stretch;
}
.story-card,
.impact-card,
.impact-mini-card,
.impact-feature,
.event-card,
.news-card,
.pillar-card,
.number-card,
.action-card {
  height: auto;
  max-height: none;
}
.story-card__image,
.impact-card__image,
.impact-mini-card__image {
  flex: 0 0 auto;
}

@media (max-width: 680px) {
  .cpt-builder-content__inner {
    width: min(calc(100% - 28px), var(--shell));
  }

  .entry-details-card {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cpt-builder-content__inner {
    width: min(calc(100% - 22px), var(--shell));
  }
}

/* ================================================================
   v4.3 Gutenberg + responsive consistency pass
   ================================================================ */

/* Editor-only helper copy is stored in Gutenberg patterns but never rendered
   to visitors. The actual form/social shortcode is the native Shortcode block. */
.iloveclubs-editor-note {
  display: none !important;
}

/* All authored content can grow naturally. No content section is max-height
   constrained; only navigation/logo UI retains viewport/image constraints. */
:is(.block-page, .is-root-container),
:is(.block-page, .is-root-container) > *,
.gutenberg-content,
.gutenberg-content > *,
.content-entry,
.content-entry-body,
.content-entry-body .entry-content,
.story-form-panel,
.story-form-panel__inner,
.story-grid,
.impact-grid,
.impact-showcase,
.impact-feature,
.impact-mini-card,
.page-section {
  max-height: none;
}

:is(.block-page, .is-root-container) .wp-block-group,
:is(.block-page, .is-root-container) .wp-block-columns,
:is(.block-page, .is-root-container) .wp-block-column,
:is(.block-page, .is-root-container) .wp-block-media-text,
.gutenberg-content .wp-block-group,
.gutenberg-content .wp-block-columns,
.gutenberg-content .wp-block-column {
  min-width: 0;
}

:is(.block-page, .is-root-container) img,
:is(.block-page, .is-root-container) video,
:is(.block-page, .is-root-container) iframe,
:is(.block-page, .is-root-container) embed,
:is(.block-page, .is-root-container) object,
.gutenberg-content img,
.gutenberg-content video,
.gutenberg-content iframe {
  max-width: 100%;
}

.gutenberg-content img,
:is(.block-page, .is-root-container) img {
  height: auto;
}

/* Dynamic grids use intrinsic card widths first, then stack naturally without
   relying solely on hard breakpoint column counts. */
.story-grid,
.story-grid--archive,
.impact-grid,
.impact-grid--archive,
.news-grid,
.event-card-grid,
.action-card-grid,
.number-cards,
.impact-pillars,
.impact-pillars--six {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.secondary-stats__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
}

/* Featured Impact layout remains editorial on large screens but becomes one
   column before either side can become too narrow. */
@media (max-width: 1040px) {
  .two-col-layout,
  .impact-showcase,
  .form-page-grid,
  .content-two-col,
  .content-entry-hero__grid {
    grid-template-columns: 1fr;
  }

  .content-entry-hero__copy {
    max-width: 820px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 32px), var(--shell));
  }
  .section-pad {
    padding-top: 46px;
    padding-bottom: 46px;
  }
  .section-pad-sm {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
  }
  h2 {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
  }

  .button-row,
  .wp-block-buttons.button-row {
    align-items: stretch;
  }
  .button-row > *,
  .wp-block-buttons.button-row > .wp-block-button {
    flex: 1 1 100%;
  }
  .wp-block-buttons.button-row .wp-block-button__link {
    width: 100%;
  }

  .impact-feature {
    grid-template-columns: 1fr;
  }
  .impact-feature__image {
    min-height: 0;
  }

  .entry-details-card,
  .entry-details-card__items {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Leaflet needs an explicit height, but the client-set value is never capped. */
.iloveclubs-story-map__canvas {
  height: var(--story-map-height);
  min-height: 260px;
  max-height: none;
}

@media (max-width: 560px) {
  .iloveclubs-story-map__canvas {
    height: var(--story-map-height);
    min-height: 320px;
    max-height: none;
  }
}

/* ========================================================================
   v4.4 approved visual mock-up
   Refines artwork and composition while keeping the Gutenberg/CPT architecture.
   ======================================================================== */

:root {
  --mock-section-gap: clamp(54px, 6.2vw, 92px);
  --mock-card-radius: max(10px, var(--brand-radius));
}

/* Header */
.site-header {
  background: var(--brand-surface);
  border-bottom: 0;
  box-shadow: none;
}
.site-header__inner {
  min-height: 92px;
}
.site-logo__image {
  max-height: 54px;
  width: auto;
}
.primary-menu {
  justify-content: center;
  gap: clamp(24px, 3vw, 52px);
}
.primary-menu a {
  color: var(--brand-secondary);
  font-size: 0.84rem;
  font-weight: 800;
}
.site-header__cta {
  min-width: 188px;
  min-height: 48px;
  border-radius: 9px;
}

/* New homepage hero */
.mock-hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-surface);
}
.mock-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: clamp(500px, 47vw, 690px);
  align-items: stretch;
}
.mock-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 6vw, 96px) clamp(30px, 5vw, 78px) clamp(54px, 6vw, 96px)
    0;
  min-width: 0;
}
.mock-hero__copy h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(3.8rem, 6.35vw, 7rem);
  line-height: 0.91;
  letter-spacing: -0.045em;
  color: var(--brand-secondary);
}
.mock-hero__question {
  margin: 0.1em 0 0.55em;
  color: var(--brand-primary);
  font-size: clamp(3rem, 5.25vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}
.mock-hero__intro {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--brand-text);
  font-size: clamp(0.98rem, 1.25vw, 1.17rem);
  line-height: 1.48;
}
.mock-hero__buttons {
  margin-top: 36px;
  gap: 22px;
}
.mock-hero__art {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--brand-primary);
}
.mock-hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand-primary) 72%, transparent),
    color-mix(in srgb, var(--brand-primary) 35%, transparent)
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}
.mock-hero__background-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
}
.mock-hero__bg-image {
  margin: 0 !important;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.55;
}
.mock-hero__bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) saturate(0.8);
}
.mock-hero__portrait {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: -2%;
  transform: translateX(-50%);
  width: min(72%, 560px);
  aspect-ratio: 1 / 1;
}
.mock-hero__portrait::before,
.mock-hero__portrait::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--brand-accent);
}
.mock-hero__portrait::before {
  width: 92%;
  height: 92%;
  left: 4%;
  top: 1%;
  clip-path: polygon(
    50% 96%,
    8% 57%,
    2% 40%,
    3% 24%,
    12% 10%,
    25% 3%,
    38% 5%,
    50% 17%,
    62% 5%,
    75% 3%,
    88% 10%,
    97% 24%,
    98% 40%,
    92% 57%
  );
}
.mock-hero__portrait::after {
  display: none;
}
.mock-hero__person-image {
  position: absolute;
  inset: -4% -3% 0;
  margin: 0 !important;
  z-index: 2;
}
.mock-hero__person-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

/* Numeric strips from the approved mock-up */
.mock-stats-strip,
.mock-secondary-stats {
  background: color-mix(in srgb, var(--brand-bg) 86%, var(--brand-surface));
}
.mock-stats-strip .stats-grid {
  padding: 0;
}
.mock-stats-strip .stat-item,
.mock-secondary-stats .secondary-stat {
  position: relative;
  min-height: 116px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 25px 22px;
}
.mock-stats-strip .stat-item + .stat-item::before,
.mock-secondary-stats .secondary-stat + .secondary-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  border-left: 1px solid var(--brand-secondary);
  opacity: 0.8;
}
.mock-stats-strip .stat-item__glyph,
.mock-secondary-stats .secondary-stat__glyph {
  display: none;
}
.mock-stats-strip .stat-item__value strong,
.mock-secondary-stats .secondary-stat__value strong {
  color: var(--brand-primary);
  font-size: clamp(1.7rem, 2.25vw, 2.4rem);
  letter-spacing: -0.025em;
}
.mock-stats-strip .stat-item__label,
.mock-secondary-stats .secondary-stat__label {
  margin-top: 2px;
  color: var(--brand-secondary);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* Stories + form */
.mock-stories-form-section {
  padding-block: var(--mock-section-gap);
  background: var(--brand-surface);
}
.mock-stories-form-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(34px, 4.6vw, 72px);
  align-items: start;
}
.mock-section-heading {
  align-items: center;
  margin-bottom: 28px;
}
.mock-section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 2.65vw, 3.1rem);
}
.mock-section-action {
  flex: 0 0 auto;
}
.mock-section-action .wp-block-button__link {
  min-height: 43px;
  padding-inline: 25px;
}
.mock-stories-form-section .story-grid {
  gap: 18px;
}
.mock-stories-form-section .story-card {
  border-radius: var(--mock-card-radius);
  box-shadow: none;
  border-color: color-mix(in srgb, var(--brand-border) 92%, transparent);
}
.mock-stories-form-section .story-card__image {
  aspect-ratio: 1.27 / 1;
}
.mock-stories-form-section .story-card__body {
  padding: 18px 18px 16px;
}
.mock-story-form-panel {
  position: static;
  margin: 0;
  padding: clamp(30px, 3vw, 46px);
  border-radius: 0;
  box-shadow: none;
  background: var(--brand-primary);
  color: var(--brand-accent);
}
.mock-story-form-panel::before {
  display: none;
}
.mock-story-form-panel > h2 {
  color: var(--brand-accent);
  font-size: clamp(2rem, 2.5vw, 3rem);
}
.mock-story-form-panel .story-form-panel__inner {
  margin-top: 20px;
  padding: clamp(18px, 2.1vw, 26px);
  border-radius: 14px;
}

/* Impact stories */
.mock-impact-section {
  padding-block: var(--mock-section-gap);
  background: var(--brand-surface);
  border-top: 1px solid color-mix(in srgb, var(--brand-border) 55%, transparent);
}
.mock-impact-section .impact-showcase {
  grid-template-columns: minmax(0, 1.17fr) minmax(0, 1.83fr);
  gap: 26px;
}
.mock-impact-section .impact-feature {
  border: 0;
  box-shadow: none;
  border-radius: var(--mock-card-radius);
}
.mock-impact-section .impact-mini-grid {
  gap: 16px;
}
.mock-impact-section .impact-mini-card {
  border-radius: var(--mock-card-radius);
  box-shadow: none;
}
.mock-impact-section .impact-feature__copy {
  padding: 22px 24px;
}
.mock-impact-section .impact-feature__copy h3 {
  font-size: clamp(1.4rem, 1.8vw, 2rem);
}

.mock-secondary-stats {
  padding: 0;
  border-block: 0;
}
.mock-secondary-stats__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 0;
  border-radius: 0;
}

/* Social strip */
.mock-social-section {
  padding-block: clamp(42px, 5vw, 68px);
  background: var(--brand-surface);
}
.mock-social__grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}
.mock-social__copy {
  padding: 0;
}
.mock-social__copy h2 {
  margin: 0;
  font-size: clamp(2rem, 2.7vw, 3rem);
}
.mock-social__copy .social-hashtag {
  margin: 0 0 16px;
  font-size: clamp(2rem, 2.7vw, 3rem);
}
.mock-social__copy p {
  max-width: 330px;
}
.mock-social-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: 1fr;
  padding: 0;
  gap: 16px;
}
.mock-social-gallery__item {
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--mock-card-radius);
}
.mock-social-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Global CTA/footer treatment */
.footer-cta {
  min-height: 260px;
  background: var(--brand-primary);
}
.footer-cta::before {
  display: none;
}
.footer-cta::after {
  content: "";
  position: absolute;
  width: clamp(250px, 28vw, 350px);
  aspect-ratio: 1;
  right: -5%;
  bottom: -40%;
  background: var(--brand-accent);

  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 90 C45 85 5 58 5 30 C5 5 35 0 50 22 C65 0 95 5 95 30 C95 58 55 85 50 90Z'/%3E%3C/svg%3E")
    center / contain no-repeat;

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 90 C45 85 5 58 5 30 C5 5 35 0 50 22 C65 0 95 5 95 30 C95 58 55 85 50 90Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
@media screen and (max-width: 500px) {
  .footer-cta::after {
    width: clamp(200px, 28vw, 350px);
    right: -15%;
    bottom: -15%;
  }
}
.footer-cta__inner {
  min-height: 260px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "heading" "buttons";
  justify-items: center;
  align-items: center;
  gap: 30px;
  padding-block: 54px;
}
.footer-cta__heart {
  display: none;
}
.footer-cta h2 {
  grid-area: heading;
  margin: 0;
  color: var(--brand-accent);
  font-size: clamp(2.25rem, 3.25vw, 4.7rem);
  line-height: 0.92;
  text-align: center;
  text-transform: uppercase;
}
.footer-cta__line {
  display: block;
}
.footer-cta__line--1 {
  color: var(--brand-accent);
}
.footer-cta__line--2 {
  color: var(--brand-secondary);
}
.footer-cta .button-row {
  grid-area: buttons;
  position: relative;
  z-index: 2;
  justify-content: center;
  flex-wrap: wrap;
}
.site-footer {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
.site-footer__top {
  padding-block: 48px 34px;
}
.site-logo--footer .site-logo__image {
  max-height: 92px;
}

/* Keep all client-authored sections fluid. */
.mock-hero,
.mock-hero__grid,
.mock-hero__art,
.mock-stories-form-section,
.mock-impact-section,
.mock-social-section,
.footer-cta,
.footer-cta__inner {
  max-height: none;
  height: auto;
}

@media (max-width: 1180px) {
  .mock-hero__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
  .mock-stories-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mock-social-gallery {
    gap: 10px;
  }
  .footer-cta__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "heading" "buttons";
    justify-items: center;
  }
}

@media (max-width: 980px) {
  .mock-hero__grid {
    grid-template-columns: 1fr;
  }
  .mock-hero__copy {
    padding-right: 0;
  }
  .mock-hero__art {
    min-height: 520px;
  }
  .mock-stories-form-grid {
    grid-template-columns: 1fr;
  }
  .mock-story-form-panel {
    width: 100%;
  }
  .mock-impact-section .impact-showcase {
    grid-template-columns: 1fr;
  }
  .mock-secondary-stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mock-secondary-stats .secondary-stat:nth-child(4)::before {
    display: none;
  }
  .mock-social__grid {
    grid-template-columns: 1fr;
  }
  .mock-social__copy p {
    max-width: 650px;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    min-height: 72px;
  }
  .site-logo__image {
    max-height: 44px;
  }
  .mock-hero__copy {
    padding-block: 46px;
  }
  .mock-hero__copy h1 {
    font-size: clamp(3.1rem, 14vw, 5rem);
  }
  .mock-hero__question {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
  .mock-hero__buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .mock-hero__buttons .wp-block-button,
  .mock-hero__buttons .wp-block-button__link {
    width: 100%;
  }
  .mock-hero__art {
    min-height: 440px;
  }
  .mock-hero__portrait {
    width: min(88%, 500px);
  }
  .mock-stats-strip .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mock-stats-strip .stat-item:nth-child(3)::before {
    display: none;
  }
  .mock-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .mock-section-action {
    width: 100%;
  }
  .mock-section-action .wp-block-button,
  .mock-section-action .wp-block-button__link {
    width: 100%;
  }
  .mock-secondary-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mock-secondary-stats .secondary-stat:nth-child(odd)::before {
    display: none;
  }
  .mock-social-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mock-social-gallery__item:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 2.08 / 1;
  }
  .footer-cta h2 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }
  .footer-cta .button-row {
    width: 100%;
    flex-direction: column;
  }
  .footer-cta .button-row .button {
    width: calc(100% - 150px);
  }
}

@media (max-width: 520px) {
  .mock-hero__art {
    min-height: 360px;
  }
  .mock-stats-strip .stats-grid,
  .mock-secondary-stats__grid {
    grid-template-columns: 1fr;
  }
  .mock-stats-strip .stat-item + .stat-item::before,
  .mock-secondary-stats .secondary-stat + .secondary-stat::before {
    display: none;
  }
  .mock-stats-strip .stat-item,
  .mock-secondary-stats .secondary-stat {
    min-height: 94px;
    border-top: 1px solid
      color-mix(in srgb, var(--brand-border) 75%, transparent);
  }
  .mock-social-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================================================
   Layout utilities and content components
   Moved from the "Simple Custom CSS and JS" plugin so they also load inside
   the block editor. Once this theme version is live, delete the matching
   rules from that plugin. Values are unchanged; nested rules are flattened.
   The Gravity Forms button, .banner-btn and Smart Slider rules stay in the
   plugin: they override plugin stylesheets that load after this file.
   ======================================================================== */

/* Text colour utility: add "brand-red" to a heading/paragraph or inline span. */
body .brand-red {
  color: var(--brand-primary);
}

body a.social-link:hover {
  color: #fff;
}

/* Story grid: 2 columns on small screens, 3 from 40em; a single story keeps card width. */
body .story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
body .story-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
}
body .story-grid:has(> :only-child) {
  grid-template-columns: 370px;
}

/* Two-column section layouts. Add "sixty-forty" or "thirty-seventy" to a Group
   (Advanced → Additional CSS class). Columns stack below 64em. */
body .thirty-seventy,
body .sixty-forty {
  display: grid;
  grid-template-columns: 1fr;
}

/* Centred statistic cell: Group "secondary-stat-cell" > Group > Heading
   "secondary-stat__heading" + Paragraph "secondary-stat__label". */
body .secondary-stat-cell {
  display: flex;
  place-items: center;
  margin-block-start: 0;
  border: 0;
}
body .secondary-stat-cell > * {
  margin: 0;
  margin-block-start: 0;
}
body .secondary-stat-cell > .wp-block-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
  height: 100%;
  width: 100%;
}
body .secondary-stat-cell h2.secondary-stat__heading {
  color: var(--brand-primary);
  margin: 0 !important;
}
body .secondary-stat-cell p.secondary-stat__label {
  text-align: center;
  margin: 14px 0 0 0 !important;
}

@media screen and (min-width: 40em) {
  body .story-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media screen and (min-width: 64em) {
  body .sixty-forty {
    grid-template-columns: 55fr 45fr;
  }
  body .thirty-seventy {
    grid-template-columns: 30fr 70fr;
    column-gap: 30px;
  }
}

/* Terms pop-up opened from links with class "iloveclubs-terms-link" (assets/js/main.js). */
.iloveclubs-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(80vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--brand-radius);
  background: var(--brand-surface);
  color: var(--brand-text);
  box-shadow: var(--shadow-soft);
}
.iloveclubs-dialog::backdrop {
  background: color-mix(in srgb, var(--brand-secondary) 60%, transparent);
}
.iloveclubs-dialog__header {
  position: sticky;
  top: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--brand-border);
  background: var(--brand-surface);
}
.iloveclubs-dialog__header h2 {
  margin: 0;
  font-size: 1.5rem;
}
.iloveclubs-dialog__close {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--brand-secondary);
  border-radius: calc(var(--brand-radius) * 0.55);
  background: transparent;
  color: var(--brand-secondary);
  font-weight: 700;
  cursor: pointer;
}
.iloveclubs-dialog__close:hover {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
.iloveclubs-dialog__body {
  padding: 20px 24px 28px;
}
.iloveclubs-dialog__body > :first-child {
  margin-top: 0;
}

/* Page content inside the pop-up: no page hero or section spacing, just the text. */
.iloveclubs-dialog__body .page-hero {
  display: none;
}
.iloveclubs-dialog__body .section-pad {
  padding: 0;
  background: none;
  border: 0;
}
.iloveclubs-dialog__body .site-shell {
  width: 100%;
}

/* Links that jump to the story form (e.g. the home banner button) stop below the sticky header. */
#share-your-story,
form[id^="gform_"] {
  scroll-margin-top: 110px;
}
@media (max-width: 760px) {
  #share-your-story,
  form[id^="gform_"] {
    scroll-margin-top: 90px;
  }
}

/* ========================================================================
   Tablet and mobile pass
   From a review of every page at phone (390px) and tablet (768px) widths.
   Desktop is unchanged except where a rule says "all widths".
   ======================================================================== */

/* Mobile menu: a full-width panel under the header. Without this the desktop
   "justify-self: center" shrinks the fixed panel to a small floating box. */
@media (max-width: 900px) {
  .primary-nav {
    justify-self: stretch;
    inset: 92px 0 auto 0;
    max-height: calc(100vh - 92px);
  }
}
@media (max-width: 760px) {
  .primary-nav {
    inset: 72px 0 auto 0;
    max-height: calc(100vh - 72px);
  }
}

/* Home banner (Smart Slider 3) on phones. The slider's phone layout puts the
   photo behind the headline, where the red "WHAT'S YOURS?" disappears into it,
   and pushes the heart logo to the right on wider phones. Here the logo is
   centred with the photo behind it (as on desktop) and the text sits on white.
   The photo band ends 20px below the logo (.7257 = the logo image's height/width). */
.n2-ss-slider[data-device-mode="mobilePortrait"] {
  --ihc-hero-logo: calc(min(100vw - 40px, 520px) * 0.7);
}
.n2-ss-slider[data-device-mode="mobilePortrait"]
  .n2-ss-layer:has(> .n2-ss-item-image-content) {
  align-self: center !important;
  width: var(--ihc-hero-logo) !important;
  margin-inline: auto !important;
}
.n2-ss-slider[data-device-mode="mobilePortrait"] .n2-ss-slide-background-image {
  --ss-o-pos-x: 100% !important;
  --ss-o-pos-y: 50% !important;
  height: calc(var(--ihc-hero-logo) * 0.7257 + 40px);
}
.n2-ss-slider[data-device-mode="mobilePortrait"]
  [data-mode]
  .n2-ss-slide-background-image
  img {
  object-fit: cover;
}

/* Home banner on wide screens: the slider keeps its content in a centred 1498px box
   (Smart Slider → slider Size), so past that width the heart logo stopped short of the
   right edge. Pull it out to the banner's bottom-right corner; the text stays put.
   cqw = the banner's width (excluding any scrollbar). If the slider width changes,
   change 1498/1499 to match. */
.n2-ss-align {
  container-type: inline-size;
}
@media (min-width: 1499px) {
  .n2-ss-slider[data-device-mode="desktopPortrait"]
    .n2-ss-layer:has(> .n2-ss-item-image-content) {
    margin-right: min(0px, calc((1498px - 100cqw) / 2)) !important;
  }
}

/* Home "Share your story" form beside the story cards: the full form is far taller than
   the cards and left a big gap beside them. On two-column screens the white form box has a
   set height and scrolls inside; the Share Your Story page (--page) shows the form in full.
   Gravity Forms moves focus to its error summary after a failed submit, so errors stay in view. */
@media (min-width: 64em) {
  .sixty-forty
    .story-form-panel:not(.story-form-panel--page)
    > .story-form-panel__inner {
    max-height: 480px;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-primary) transparent;
  }
}

/* Text sections (legal pages, Privacy Policy, Story/Impact body), all widths:
   space above a heading so it reads with the text below it, not the text above. */
:is(.block-page, .is-root-container)
  :is(.prose, .entry-content, .wp-block-column)
  > :is(p, ul, ol)
  + .wp-block-heading {
  margin-block-start: 2rem;
}
:is(.block-page, .is-root-container)
  :is(.prose, .entry-content, .wp-block-column)
  > .wp-block-heading
  + * {
  margin-block-start: 0.75rem;
}

/* Page banner photo fills its frame, all widths (the general "img { height: auto }"
   rule left a grey strip under it). Full content width once the banner stacks. */
.page-hero__image .page-hero__block-image img {
  height: 100%;
}
@media (max-width: 900px) {
  .page-hero__image {
    max-width: none;
  }
}

/* Stacked two-column sections: the 70px desktop column gap became a large
   empty space between the heading and its text. */
@media (max-width: 1040px) {
  .content-two-col {
    row-gap: 20px;
  }
  :is(.block-page, .is-root-container) .content-two-col > * + * {
    margin-block-start: 0;
  }
}

/* Four-card rows (values, impact areas, ways to get involved) as 2 × 2 on
   tablets instead of three cards and one left over. */
@media (min-width: 561px) and (max-width: 1080px) {
  :is(.block-page, .is-root-container)
    .impact-pillars:not(.impact-pillars--six),
  :is(.block-page, .is-root-container) .action-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Cards size to their content once they are one per row. */
@media (max-width: 760px) {
  .number-card,
  .impact-pillars--six .pillar-card {
    min-height: 0;
  }
}

/* Story cards: one per row on phones (two narrow columns broke words mid-way). */
@media (max-width: 560px) {
  body .story-grid,
  body .story-grid:has(> :nth-child(2):last-child),
  body .story-grid:has(> :only-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Bigger tap area for the small "Share" link on story cards (layout unchanged). */
.story-card__meta a {
  padding-block: 10px;
  margin-block: -10px;
}

/* Single Story / Club Impact: on phones the full-width card showed its border
   at the screen edges and doubled the side padding. */
@media (max-width: 760px) {
  .content-entry {
    border-inline: 0;
    border-radius: 0;
    padding-inline: 0;
  }
}

/* Social photos on phones: square thumbnails without the empty space below. */
@media (max-width: 680px) {
  .social-gallery {
    min-height: 0;
  }
  .social-gallery .wp-block-image {
    min-height: 0;
    aspect-ratio: 1;
  }
  .social-gallery .social-gallery__item img {
    height: 100%;
  }
}

/* Footer links: easier to tap on touch screens, same spacing. */
@media (max-width: 900px) {
  .footer-menu-block li {
    margin: 0;
  }
  .footer-menu-block a {
    display: inline-block;
    padding-block: 5px;
  }
}
