/*
Theme Name: Geneviève for Coquitlam, Twenty Twenty-Five
Theme URI: https://genevievekylelefebvre.ca
Description: Responsive campaign child theme for Twenty Twenty-Five. Uses existing editable WordPress pages and blocks.
Author: Campaign Team
Template: twentytwentyfive
Version: 2.0.2
Text Domain: genevieve-coquitlam
*/


:root {
  --gv-purple: #5a2a82;
  --gv-purple-dark: #35134f;
  --gv-purple-light: #efe7f6;
  --gv-navy: #14213d;
  --gv-ink: #20212a;
  --gv-muted: #626473;
  --gv-white: #ffffff;
  --gv-soft: #f7f5f9;
  --gv-border: #ded8e5;
  --gv-radius: 18px;
  --gv-shadow: 0 18px 45px rgba(33, 18, 50, .12);
}

html { scroll-behavior: smooth; }
body { color: var(--gv-ink); }

/* Campaign header: intentionally remove all navigation links and mobile menu controls.
   The site title/logo remains visible and clickable. */
#header [data-id="menu"],
#header .ct-header-menu,
#header nav[aria-label*="menu" i],
#header nav[aria-label*="navigation" i],
#header [data-id="trigger"],
#header .ct-header-trigger,
#header .ct-menu-link,
.ct-panel-content .mobile-menu,
.ct-panel-content [data-id="menu"] {
  display: none !important;
}

/* Keep the remaining header content cleanly aligned after the menu is removed. */
#header [data-row] > div,
#header .ct-container {
  justify-content: flex-start;
}
.gv-site { overflow: hidden; }
.gv-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.gv-section { padding: 88px 0; }
.gv-eyebrow { margin: 0 0 14px; color: var(--gv-purple); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.gv-heading { margin: 0 0 20px; color: var(--gv-navy); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; }
.gv-lead { max-width: 760px; margin: 0; color: var(--gv-muted); font-size: 1.15rem; line-height: 1.75; }
.gv-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; background: var(--gv-purple); color: #fff !important; font-weight: 800; text-decoration: none; border: 2px solid var(--gv-purple); transition: .2s ease; }
.gv-button:hover { transform: translateY(-2px); background: var(--gv-purple-dark); border-color: var(--gv-purple-dark); }
.gv-button--outline { background: transparent; color: var(--gv-purple) !important; }
.gv-button--light { background: #fff; color: var(--gv-purple) !important; border-color: #fff; }
.gv-button--light:hover { background: var(--gv-purple-light); border-color: var(--gv-purple-light); }

.gv-topbar { background: var(--gv-purple-dark); color: #fff; font-size: .9rem; text-align: center; padding: 9px 20px; }
.gv-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(90,42,130,.12); }
.gv-header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gv-brand { color: var(--gv-navy); text-decoration: none; line-height: 1; }
.gv-brand strong { display: block; font-size: 1.25rem; letter-spacing: -.02em; }
.gv-brand span { display: block; color: var(--gv-purple); font-size: .77rem; text-transform: uppercase; letter-spacing: .14em; margin-top: 7px; font-weight: 800; }
.gv-nav { display: flex; align-items: center; gap: 24px; }
.gv-nav a { color: var(--gv-navy); text-decoration: none; font-weight: 700; font-size: .96rem; }
.gv-nav a:hover { color: var(--gv-purple); }
.gv-menu-toggle { display: none; border: 0; background: transparent; padding: 8px; font-size: 1.5rem; }

.gv-hero { position: relative; background: linear-gradient(120deg, #f7f1fb 0%, #fff 52%, #ece5f4 100%); padding: 76px 0 62px; }
.gv-hero:after { content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: rgba(90,42,130,.09); right: -180px; top: -170px; }
.gv-hero__grid { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 64px; position: relative; z-index: 1; }
.gv-kicker { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--gv-purple-light); color: var(--gv-purple-dark); font-weight: 800; font-size: .86rem; margin-bottom: 24px; }
.gv-hero h1 { margin: 0; color: var(--gv-navy); font-size: clamp(3.2rem, 7vw, 6.4rem); line-height: .88; letter-spacing: -.065em; }
.gv-hero h1 span { color: var(--gv-purple); display: block; }
.gv-hero__sub { max-width: 650px; margin: 28px 0 30px; color: var(--gv-muted); font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.65; }
.gv-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gv-election-note { margin-top: 24px; color: var(--gv-navy); font-weight: 700; font-size: .92rem; }
.gv-photo-card { position: relative; min-height: 610px; border-radius: 28px; background: linear-gradient(160deg, var(--gv-purple-light), #d9c7e7); box-shadow: var(--gv-shadow); overflow: hidden; }
.gv-photo-card img { width: 100%; height: 100%; min-height: 610px; object-fit: cover; display: block; }
.gv-photo-placeholder { min-height: 610px; display: grid; place-items: center; padding: 40px; text-align: center; color: var(--gv-purple-dark); font-weight: 800; }
.gv-photo-label { position: absolute; left: 24px; bottom: 24px; right: 24px; padding: 19px 22px; border-radius: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); color: var(--gv-navy); box-shadow: 0 10px 30px rgba(20,33,61,.12); }
.gv-photo-label strong { display: block; font-size: 1.1rem; }
.gv-photo-label span { display: block; color: var(--gv-purple); margin-top: 4px; font-weight: 700; }

/* Scrolling priority band */
.gv-values {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 22px 0;
  background: linear-gradient(100deg, var(--gv-purple-dark), var(--gv-purple), #694097);
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.14), inset 0 -1px rgba(0,0,0,.12);
}
.gv-values__ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.gv-values__track {
  display: flex;
  width: max-content;
  animation: gv-priority-scroll 46s linear infinite;
  will-change: transform;
}
.gv-values__set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.gv-value {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 34px;
  color: #fff !important;
  font-size: clamp(.95rem, 1.25vw, 1.08rem);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: .015em;
  white-space: nowrap;
  text-align: center;
}
.gv-value::after {
  content: "•";
  position: absolute;
  right: -4px;
  color: rgba(255,255,255,.55);
  font-size: 1rem;
}
.gv-values:hover .gv-values__track,
.gv-values:focus-within .gv-values__track {
  animation-play-state: paused;
}
@keyframes gv-priority-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .gv-values__ticker {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: thin;
  }
  .gv-values__track { animation: none; }
  .gv-values__set[aria-hidden="true"] { display: none; }
}

.gv-about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.gv-about__portrait { min-height: 520px; border-radius: var(--gv-radius); background: var(--gv-soft); border: 1px solid var(--gv-border); display: grid; place-items: center; padding: 36px; text-align: center; color: var(--gv-muted); }
.gv-about__copy p { color: var(--gv-muted); font-size: 1.08rem; line-height: 1.8; }
.gv-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.gv-fact { padding: 18px; border-radius: 12px; background: var(--gv-soft); border: 1px solid var(--gv-border); }
.gv-fact strong { color: var(--gv-purple-dark); display: block; margin-bottom: 5px; }

.gv-priorities { background: var(--gv-soft); }
.gv-priority-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.gv-card { background: #fff; border: 1px solid var(--gv-border); border-radius: var(--gv-radius); padding: 30px; box-shadow: 0 10px 32px rgba(35,25,50,.06); }
.gv-card__number { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gv-purple-light); color: var(--gv-purple); font-weight: 900; }
.gv-card h3 { color: var(--gv-navy); font-size: 1.35rem; margin: 20px 0 10px; }
.gv-card p { color: var(--gv-muted); line-height: 1.7; margin: 0; }

.gv-record__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 44px; }
.gv-record-card { padding: 32px; border-radius: var(--gv-radius); border: 1px solid var(--gv-border); }
.gv-record-card h3 { margin-top: 0; color: var(--gv-purple-dark); }
.gv-record-card ul { padding-left: 20px; color: var(--gv-muted); line-height: 1.8; }

.gv-quote { background: var(--gv-navy); color: #fff; }
.gv-quote blockquote { margin: 0; max-width: 1000px; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.15; letter-spacing: -.04em; font-weight: 800; }
.gv-quote cite { display: block; margin-top: 24px; color: #d7c5e8; font-style: normal; font-weight: 700; }

.gv-news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 42px; }
.gv-news-card { border-radius: var(--gv-radius); overflow: hidden; border: 1px solid var(--gv-border); background: #fff; }
.gv-news-card__image { height: 190px; background: linear-gradient(145deg, var(--gv-purple-light), #ded1ea); display: grid; place-items: center; color: var(--gv-purple-dark); font-weight: 800; }
.gv-news-card__body { padding: 24px; }
.gv-news-card__body h3 { margin: 0 0 10px; color: var(--gv-navy); }
.gv-news-card__body p { margin: 0; color: var(--gv-muted); line-height: 1.65; }

.gv-join { background: linear-gradient(120deg, var(--gv-purple-dark), var(--gv-purple)); color: #fff; }
.gv-join__grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.gv-join h2 { color: #fff; margin-bottom: 14px; }
.gv-join p { color: rgba(255,255,255,.82); max-width: 720px; font-size: 1.1rem; line-height: 1.7; }

.gv-contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; }
.gv-contact-card { padding: 28px; background: var(--gv-soft); border: 1px solid var(--gv-border); border-radius: var(--gv-radius); }
.gv-form { display: grid; gap: 15px; }
.gv-form label { color: var(--gv-navy); font-weight: 800; font-size: .9rem; }
.gv-form input, .gv-form textarea, .gv-form select { width: 100%; margin-top: 7px; padding: 14px 15px; border: 1px solid #cfc6d8; border-radius: 10px; background: #fff; font: inherit; }
.gv-form textarea { min-height: 130px; resize: vertical; }

.gv-footer { background: #111827; color: #d3d6de; padding: 44px 0 26px; }
.gv-footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
.gv-footer strong { color: #fff; font-size: 1.1rem; }
.gv-footer a { color: #fff; }
.gv-disclaimer { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); font-size: .84rem; line-height: 1.65; }

@media (max-width: 900px) {
  .gv-nav { display: none; position: absolute; left: 0; right: 0; top: 82px; padding: 24px; flex-direction: column; align-items: flex-start; background: #fff; border-bottom: 1px solid var(--gv-border); }
  .gv-nav.is-open { display: flex; }
  .gv-menu-toggle { display: block; }
  .gv-hero__grid, .gv-about__grid, .gv-contact-grid, .gv-join__grid { grid-template-columns: 1fr; }
  .gv-photo-card, .gv-photo-card img, .gv-photo-placeholder { min-height: 520px; }
  .gv-priority-grid, .gv-news-grid { grid-template-columns: 1fr 1fr; }
  .gv-record__grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .gv-container { width: min(100% - 28px, 1180px); }
  .gv-section { padding: 64px 0; }
  .gv-hero { padding-top: 50px; }
  .gv-hero h1 { font-size: clamp(3rem, 18vw, 4.6rem); }
  .gv-priority-grid, .gv-news-grid, .gv-facts { grid-template-columns: 1fr; }
  .gv-footer__grid { grid-template-columns: 1fr; }
}

/* Accessibility safeguard: all campaign-purple backgrounds use high-contrast light text. */
.gv-purple-background,
.gv-has-purple-background,
.has-gv-purple-background-color,
.has-purple-background-color,
[style*="background-color: #5a2a82" i],
[style*="background-color:#5a2a82" i],
[style*="background: #5a2a82" i],
[style*="background:#5a2a82" i],
[style*="background-color: #35134f" i],
[style*="background-color:#35134f" i],
[style*="background: #35134f" i],
[style*="background:#35134f" i] {
  color: rgba(255, 255, 255, .94) !important;
}

.gv-purple-background h1,
.gv-purple-background h2,
.gv-purple-background h3,
.gv-purple-background h4,
.gv-purple-background h5,
.gv-purple-background h6,
.gv-has-purple-background h1,
.gv-has-purple-background h2,
.gv-has-purple-background h3,
.gv-has-purple-background h4,
.gv-has-purple-background h5,
.gv-has-purple-background h6,
.has-gv-purple-background-color h1,
.has-gv-purple-background-color h2,
.has-gv-purple-background-color h3,
.has-gv-purple-background-color h4,
.has-gv-purple-background-color h5,
.has-gv-purple-background-color h6,
.has-purple-background-color h1,
.has-purple-background-color h2,
.has-purple-background-color h3,
.has-purple-background-color h4,
.has-purple-background-color h5,
.has-purple-background-color h6 {
  color: #ffffff !important;
}

.gv-purple-background p,
.gv-purple-background li,
.gv-purple-background label,
.gv-purple-background figcaption,
.gv-purple-background small,
.gv-has-purple-background p,
.gv-has-purple-background li,
.gv-has-purple-background label,
.gv-has-purple-background figcaption,
.gv-has-purple-background small,
.has-gv-purple-background-color p,
.has-gv-purple-background-color li,
.has-gv-purple-background-color label,
.has-gv-purple-background-color figcaption,
.has-gv-purple-background-color small,
.has-purple-background-color p,
.has-purple-background-color li,
.has-purple-background-color label,
.has-purple-background-color figcaption,
.has-purple-background-color small {
  color: rgba(255, 255, 255, .90) !important;
}

.gv-purple-background a:not(.gv-button--light),
.gv-has-purple-background a:not(.gv-button--light),
.has-gv-purple-background-color a:not(.gv-button--light),
.has-purple-background-color a:not(.gv-button--light) {
  color: #ffffff !important;
  text-decoration-color: rgba(255, 255, 255, .65);
}

.gv-purple-background a:not(.gv-button--light):hover,
.gv-has-purple-background a:not(.gv-button--light):hover,
.has-gv-purple-background-color a:not(.gv-button--light):hover,
.has-purple-background-color a:not(.gv-button--light):hover {
  color: #f4eefa !important;
}

/* Explicit contrast for the theme's current purple sections. */
.gv-topbar,
.gv-values,
.gv-join {
  color: rgba(255, 255, 255, .94);
}

.gv-topbar *,
.gv-values *,
.gv-join h1,
.gv-join h2,
.gv-join h3,
.gv-join h4,
.gv-join h5,
.gv-join h6 {
  color: #ffffff;
}

.gv-join p,
.gv-join li,
.gv-join label,
.gv-join small {
  color: rgba(255, 255, 255, .88) !important;
}

.gv-join .gv-button--light {
  color: var(--gv-purple-dark) !important;
}


/* Gutenberg editable homepage */
.gv-editable-home .entry-content { margin: 0; }
.gv-editable-home > * { margin-block-start: 0; }
.gv-editable-home .alignwide { width: min(1180px, calc(100% - 40px)); max-width: 1180px; margin-inline: auto; }
.gv-editable-home .alignfull { width: 100%; max-width: none; margin-inline: 0; }
.gv-topbar p { margin: 0; color: #fff !important; }
.gv-image-help { text-align: center; margin-top: 10px; color: var(--gv-purple-dark); }
.gv-photo-card { padding: 0; }
.gv-photo-card img { min-height: 610px; object-fit: cover; }
.gv-about__portrait { padding: 0; overflow: hidden; }
.gv-about__portrait img { width: 100%; min-height: 520px; height: 100%; object-fit: cover; }
.gv-news-card__image { height: 190px; margin: 0; overflow: hidden; }
.gv-news-card__image img { width: 100%; height: 190px; object-fit: cover; }
.gv-values .wp-block-column, .gv-values p, .gv-join p, .gv-join h2, .gv-join .gv-eyebrow { color: #fff !important; }
.gv-button.wp-block-button { padding: 0; background: transparent; border: 0; }
.gv-button .wp-block-button__link { background: var(--gv-purple); color: #fff !important; border: 2px solid var(--gv-purple); border-radius: 999px; font-weight: 800; padding: 12px 24px; }
.gv-button--outline .wp-block-button__link { background: transparent; color: var(--gv-purple) !important; }
.gv-button--light .wp-block-button__link { background: #fff; color: var(--gv-purple) !important; border-color: #fff; }
.block-editor-block-list__layout .gv-topbar,
.block-editor-block-list__layout .gv-hero,
.block-editor-block-list__layout .gv-values,
.block-editor-block-list__layout .gv-section { max-width: none; }
@media (max-width: 800px) {
  .gv-editable-home .alignwide { width: min(100% - 28px, 1180px); }
  .gv-photo-card img { min-height: 480px; }
}


/* Updated campaign platform sections */
.gv-food { background: linear-gradient(125deg, var(--gv-purple-dark), var(--gv-purple)); }
.gv-food__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.gv-food ul { margin: 0; padding-left: 22px; line-height: 1.8; }
.gv-food__closing { max-width: 900px; margin: 42px auto 0; font-size: 1.12rem; line-height: 1.7; }
.gv-priorities .gv-lead { margin-inline: auto; }
.gv-about__copy ul { color: var(--gv-muted); line-height: 1.8; padding-left: 22px; }
.gv-contact-note { padding: 20px; border: 1px solid var(--gv-border); border-radius: 12px; background: var(--gv-soft); }
@media (max-width: 800px) { .gv-food__grid { grid-template-columns: 1fr; } }


/* Layout and typography audit, v1.2.1 */
*, *::before, *::after { box-sizing: border-box; }

/* Reliable page gutters for all editable full-width Gutenberg sections. */
.gv-editable-home .gv-hero,
.gv-editable-home .gv-values,
.gv-editable-home .gv-section,
.gv-editable-home .gv-topbar {
  padding-left: clamp(20px, 4vw, 52px);
  padding-right: clamp(20px, 4vw, 52px);
}

.gv-editable-home .gv-topbar {
  padding-top: 10px;
  padding-bottom: 10px;
}

.gv-editable-home .gv-hero {
  padding-top: clamp(54px, 7vw, 82px);
  padding-bottom: clamp(50px, 6vw, 70px);
}

.gv-editable-home .gv-values {
  padding-top: 30px;
  padding-bottom: 30px;
}

.gv-editable-home .gv-section {
  padding-top: clamp(64px, 8vw, 92px);
  padding-bottom: clamp(64px, 8vw, 92px);
}

/* Keep wide blocks inside the section gutters instead of touching the viewport. */
.gv-editable-home .alignwide {
  width: min(1180px, 100%);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* Stable heading spacing and line-height, preventing collisions with following text. */
.gv-editable-home h1,
.gv-editable-home h2,
.gv-editable-home h3,
.gv-editable-home h4,
.gv-editable-home h5,
.gv-editable-home h6 {
  position: static;
  clear: both;
  height: auto;
  min-height: 0;
  overflow: visible;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.gv-editable-home .gv-heading {
  margin-top: 0;
  margin-bottom: clamp(20px, 2.5vw, 30px);
  line-height: 1.12;
}

.gv-editable-home .gv-heading + p,
.gv-editable-home .gv-heading + .wp-block-columns,
.gv-editable-home .gv-heading + .wp-block-list {
  margin-top: 0;
}

.gv-editable-home .gv-eyebrow {
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.45;
}

.gv-editable-home .gv-hero h1 {
  line-height: .96;
  margin-bottom: 0;
}

.gv-editable-home .gv-hero__sub {
  margin-top: 28px;
  margin-bottom: 30px;
}

/* Card titles always reserve natural space above body copy. */
.gv-editable-home .gv-card h3,
.gv-editable-home .gv-news-card__body h3,
.gv-editable-home .gv-record-card h3 {
  display: block;
  line-height: 1.28;
  margin-top: 0;
  margin-bottom: 14px;
}

.gv-editable-home .gv-card p,
.gv-editable-home .gv-news-card__body p,
.gv-editable-home .gv-record-card p {
  margin-top: 0;
}

.gv-editable-home .gv-card {
  padding: clamp(24px, 3vw, 32px);
}

.gv-editable-home .gv-news-card__body {
  padding: clamp(22px, 3vw, 28px);
}

/* Lists and paragraphs should not collide with headings or section edges. */
.gv-editable-home p,
.gv-editable-home ul,
.gv-editable-home ol {
  max-width: 100%;
}

.gv-editable-home ul,
.gv-editable-home ol {
  padding-left: 1.35em;
}

.gv-editable-home .gv-food__grid,
.gv-editable-home .gv-contact-grid,
.gv-editable-home .gv-about__grid,
.gv-editable-home .gv-join__grid {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .gv-editable-home .gv-hero,
  .gv-editable-home .gv-values,
  .gv-editable-home .gv-section,
  .gv-editable-home .gv-topbar {
    padding-left: clamp(20px, 5vw, 36px);
    padding-right: clamp(20px, 5vw, 36px);
  }

  .gv-editable-home .gv-heading {
    line-height: 1.16;
  }

  .gv-editable-home .gv-hero h1 {
    line-height: 1;
    letter-spacing: -.045em;
  }
}

@media (max-width: 620px) {
  .gv-editable-home .gv-hero,
  .gv-editable-home .gv-values,
  .gv-editable-home .gv-section,
  .gv-editable-home .gv-topbar {
    padding-left: 20px;
    padding-right: 20px;
  }

  .gv-editable-home .gv-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .gv-editable-home .gv-heading {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
    line-height: 1.17;
    letter-spacing: -.025em;
    margin-bottom: 20px;
  }

  .gv-editable-home .gv-hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.15rem);
    line-height: 1.02;
    letter-spacing: -.04em;
  }

  .gv-editable-home .gv-card,
  .gv-editable-home .gv-news-card__body,
  .gv-editable-home .gv-record-card {
    padding: 22px;
  }

  .gv-editable-home .gv-card h3,
  .gv-editable-home .gv-news-card__body h3,
  .gv-editable-home .gv-record-card h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 12px;
  }
}


/* Larger section labels, v1.2.3 */
.gv-editable-home .gv-eyebrow {
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  letter-spacing: .09em;
  font-weight: 850;
}

/* Give the Food Recovery section a prominent visible title. */
.gv-editable-home .gv-food .gv-eyebrow {
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: .035em;
  margin-bottom: 18px;
  text-transform: none;
  color: #ffffff !important;
}

@media (max-width: 620px) {
  .gv-editable-home .gv-eyebrow {
    font-size: 1rem;
  }

  .gv-editable-home .gv-food .gv-eyebrow {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
    line-height: 1.22;
  }
}


/* Priority ticker refinements, v1.2.6 */
@media (max-width: 620px) {
  .gv-values { padding: 17px 0; }
  .gv-value { padding: 7px 25px; font-size: .94rem; }
  .gv-values__track { animation-duration: 58s; }
}


/* Editable three-image community slideshow, v1.2.7 */
.gv-community-slider {
  position: relative;
  width: 100%;
  min-height: clamp(390px, 46vw, 620px);
  overflow: hidden;
  border-radius: 22px;
  background: #eee8f3;
  box-shadow: 0 18px 45px rgba(31, 24, 48, .14);
}

.gv-community-slider .gv-community-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity .75s ease, visibility .75s ease;
}

.gv-community-slider .gv-community-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.gv-community-slider .gv-community-slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(390px, 46vw, 620px);
  object-fit: cover;
  object-position: center;
}

.gv-community-slider__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(25, 18, 39, .48);
  backdrop-filter: blur(7px);
}

.gv-community-slider__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.gv-community-slider__dot.is-active {
  background: #fff;
}

.gv-community-slider__dot:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Show all three editable images in the Gutenberg editor. */
.editor-styles-wrapper .gv-community-slider,
.block-editor-block-list__layout .gv-community-slider {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
}

.editor-styles-wrapper .gv-community-slider .gv-community-slide,
.block-editor-block-list__layout .gv-community-slider .gv-community-slide {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  min-height: 220px;
}

.editor-styles-wrapper .gv-community-slider .gv-community-slide img,
.block-editor-block-list__layout .gv-community-slider .gv-community-slide img {
  min-height: 220px;
  height: 220px;
  border-radius: 14px;
}

@media (max-width: 620px) {
  .gv-community-slider,
  .gv-community-slider .gv-community-slide img {
    min-height: 410px;
  }

  .gv-community-slider {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gv-community-slider .gv-community-slide {
    transition: none;
  }
}


/* Version 1.2.8: shorter multi-page campaign structure */
.gv-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}
.gv-summary-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(26px, 4vw, 38px);
  background: #fff;
  border: 1px solid var(--gv-border);
  border-radius: var(--gv-radius);
  box-shadow: 0 12px 34px rgba(35,25,50,.07);
}
.gv-summary-card h3 {
  margin: 0 0 14px;
  color: var(--gv-navy);
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  line-height: 1.18;
}
.gv-summary-card p {
  margin: 0 0 24px;
  color: var(--gv-muted);
  line-height: 1.72;
}
.gv-summary-card .wp-block-buttons { margin-top: auto; }
.gv-page-hero {
  padding: clamp(68px, 9vw, 116px) 0;
  background: linear-gradient(120deg, var(--gv-purple-dark), var(--gv-purple));
  color: #fff;
}
.gv-page-hero h1 { color: #fff; margin: 0 0 18px; font-size: clamp(2.65rem, 6vw, 5.5rem); line-height: 1.02; }
.gv-page-hero p { color: rgba(255,255,255,.9); max-width: 820px; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.65; }
.gv-page-content { padding: clamp(64px, 8vw, 108px) 0; }
.gv-page-content > .wp-block-group__inner-container,
.gv-page-content > * { max-width: 1100px; }
.gv-food-green {
  background: linear-gradient(135deg, #174c3b, #24715a);
  color: #f7fff9;
}
.gv-food-green h1,
.gv-food-green h2,
.gv-food-green h3,
.gv-food-green h4 { color: #fff !important; }
.gv-food-green p,
.gv-food-green li { color: rgba(247,255,249,.92) !important; }
.gv-food-green .wp-block-button__link {
  background: #fff !important;
  color: #174c3b !important;
}
.gv-food-highlight {
  border-left: 6px solid #6fcf97;
  background: #eef9f2;
  padding: 28px 30px;
  border-radius: 0 16px 16px 0;
}
.gv-food-highlight h2, .gv-food-highlight h3 { color: #174c3b; }
.gv-nav-cards { background: var(--gv-soft); }
.gv-back-link { margin-top: 36px; }
.gv-back-link a { font-weight: 800; color: var(--gv-purple); }

@media (max-width: 760px) {
  .gv-summary-grid { grid-template-columns: 1fr; }
  .gv-summary-card { padding: 25px; }
}


/* Editable food photography on the dedicated food page only */
.gv-food-photo--landscape {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin: 0 auto clamp(36px, 5vw, 58px);
  border-radius: 24px;
  overflow: hidden;
  background: #eef3ef;
  box-shadow: 0 18px 44px rgba(19, 69, 49, .18);
}
.gv-food-photo--landscape img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (max-width: 820px) {
  .gv-food-photo--landscape { border-radius: 16px; }
}

/* Responsive visual refinement, v1.3.2 */
:root {
  --gv-content: 1120px;
  --gv-reading: 820px;
  --gv-gutter: clamp(18px, 4vw, 48px);
}

/* Prevent media from exceeding its layout at any viewport size. */
.gv-site img,
.gv-editable-home img,
.entry-content img {
  max-width: 100%;
  height: auto;
}

.gv-container,
.gv-editable-home .alignwide,
.gv-page-hero > *,
.gv-page-content > * {
  width: min(var(--gv-content), calc(100% - (var(--gv-gutter) * 2)));
  max-width: var(--gv-content);
  margin-left: auto;
  margin-right: auto;
}

/* More controlled desktop rhythm. */
.gv-section,
.gv-page-content {
  padding-top: clamp(52px, 6vw, 82px);
  padding-bottom: clamp(52px, 6vw, 82px);
}

.gv-heading {
  font-size: clamp(1.9rem, 3.6vw, 3.15rem);
  line-height: 1.12;
}

.gv-lead,
.gv-page-content > p,
.gv-page-content > ul,
.gv-page-content > ol {
  max-width: var(--gv-reading);
}

/* Hero image: portrait proportion without dominating the page. */
.gv-hero {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(46px, 6vw, 68px);
}

.gv-hero__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: clamp(34px, 5vw, 62px);
}

.gv-hero h1 {
  font-size: clamp(2.85rem, 6vw, 5.65rem);
  line-height: .94;
}

.gv-photo-card {
  width: min(100%, 480px);
  min-height: 0;
  aspect-ratio: 4 / 5;
  justify-self: end;
  margin-left: auto;
  border-radius: clamp(18px, 2.5vw, 28px);
}

.gv-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

/* Community slideshow: compact landscape presentation. */
.gv-about__grid {
  grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr);
  gap: clamp(36px, 5vw, 64px);
}

.gv-community-slider {
  width: min(100%, 540px);
  min-height: 0;
  aspect-ratio: 4 / 3;
  margin-inline: auto;
}

.gv-community-slider .gv-community-slide,
.gv-community-slider .gv-community-slide img {
  min-height: 0;
  height: 100%;
  aspect-ratio: 4 / 3;
}

/* Dedicated food image stays landscape and does not stretch edge to edge. */
.gv-food-photo--landscape {
  width: min(100%, 920px);
  aspect-ratio: 16 / 9;
  max-height: 520px;
  margin-left: auto;
  margin-right: auto;
}

.gv-food-photo--landscape img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

/* Supporting pages are more restrained than the homepage hero. */
.gv-page-hero {
  padding-top: clamp(58px, 8vw, 92px);
  padding-bottom: clamp(58px, 8vw, 92px);
}

.gv-page-hero h1 {
  font-size: clamp(2.35rem, 5.5vw, 4.7rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.gv-page-hero p {
  font-size: clamp(1.02rem, 1.7vw, 1.25rem);
}

/* Cards remain balanced across common laptop widths. */
.gv-summary-grid,
.gv-priority-grid {
  gap: clamp(16px, 2.2vw, 24px);
}

.gv-summary-card,
.gv-card {
  padding: clamp(22px, 3vw, 32px);
}

.gv-summary-card h3,
.gv-card h3 {
  overflow-wrap: anywhere;
}

/* Tablet */
@media (max-width: 960px) {
  .gv-hero__grid,
  .gv-about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .gv-photo-card {
    width: min(100%, 410px);
  }

  .gv-community-slider {
    width: min(100%, 470px);
  }

  .gv-priority-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile and narrow tablet */
@media (max-width: 760px) {
  .gv-hero__grid,
  .gv-about__grid,
  .gv-contact-grid,
  .gv-food__grid,
  .gv-join__grid {
    grid-template-columns: 1fr;
  }

  .gv-hero__grid {
    gap: 38px;
  }

  .gv-hero h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
    line-height: 1;
  }

  .gv-hero__sub {
    font-size: 1.05rem;
  }

  .gv-photo-card {
    width: min(100%, 370px);
    justify-self: center;
    margin-inline: auto;
  }

  .gv-community-slider {
    width: min(100%, 520px);
    aspect-ratio: 4 / 3;
  }

  .gv-community-slider .gv-community-slide,
  .gv-community-slider .gv-community-slide img {
    aspect-ratio: 4 / 3;
  }

  .gv-summary-grid,
  .gv-priority-grid,
  .gv-news-grid,
  .gv-facts {
    grid-template-columns: 1fr;
  }

  .gv-food-photo--landscape {
    width: 100%;
    max-height: none;
    border-radius: 16px;
  }

  .gv-page-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.45rem);
  }

  .gv-actions,
  .wp-block-buttons {
    gap: 10px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root { --gv-gutter: 18px; }

  .gv-section,
  .gv-page-content {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .gv-hero {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .gv-heading {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .gv-photo-card {
    width: min(100%, 330px);
  }

  .gv-community-slider {
    aspect-ratio: 1 / 1;
    border-radius: 15px;
  }

  .gv-community-slider .gv-community-slide,
  .gv-community-slider .gv-community-slide img {
    aspect-ratio: 1 / 1;
  }

  .gv-community-slider__dots {
    bottom: 12px;
  }

  .gv-button .wp-block-button__link,
  .gv-button {
    width: 100%;
    min-height: 48px;
    text-align: center;
  }

  .gv-actions .wp-block-button,
  .gv-actions .gv-button,
  .gv-actions .wp-block-button__link {
    width: 100%;
  }

  .gv-summary-card,
  .gv-card,
  .gv-food-highlight {
    padding: 21px;
  }

  .gv-quote blockquote {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }
}

/* Gutenberg editor previews should remain practical to edit. */
.editor-styles-wrapper .gv-photo-card,
.block-editor-block-list__layout .gv-photo-card {
  max-width: 480px;
  min-height: 0;
  aspect-ratio: 4 / 5;
}

.editor-styles-wrapper .gv-photo-card img,
.block-editor-block-list__layout .gv-photo-card img {
  min-height: 0;
  aspect-ratio: 4 / 5;
}


/* v1.3.3: portrait-centred priorities layout */
.gv-priority-orbit {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(260px, 0.82fr) minmax(250px, 1fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: center;
  margin: clamp(34px, 5vw, 64px) auto 0;
  max-width: 1240px;
}
.gv-priority-orbit__left,
.gv-priority-orbit__right {
  display: grid;
  gap: 20px;
}
.gv-priority-orbit .gv-card {
  margin: 0;
  min-height: 0;
  padding: clamp(20px, 2.2vw, 28px);
}
.gv-priority-orbit .gv-card h3 {
  font-size: clamp(1.08rem, 1.35vw, 1.35rem);
  line-height: 1.22;
  margin: 0 0 10px;
}
.gv-priority-orbit .gv-card p {
  font-size: clamp(.94rem, 1vw, 1.02rem);
  line-height: 1.58;
  margin: 0;
}
.gv-priority-orbit__centre {
  position: sticky;
  top: 32px;
  align-self: center;
  text-align: center;
}
.gv-priority-portrait {
  width: min(100%, 340px);
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--gv-shadow);
  border: 6px solid #fff;
  background: #fff;
}
.gv-priority-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.gv-priority-portrait__caption {
  margin: 14px 0 0;
  color: var(--gv-purple-dark);
  font-weight: 750;
  font-size: 1.05rem;
}
@media (max-width: 980px) {
  .gv-priority-orbit {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .gv-priority-orbit__centre {
    grid-column: 1 / -1;
    grid-row: 1;
    position: static;
    width: min(100%, 300px);
    margin: 0 auto 8px;
  }
  .gv-priority-orbit__left { grid-column: 1; grid-row: 2; }
  .gv-priority-orbit__right { grid-column: 2; grid-row: 2; }
}
@media (max-width: 680px) {
  .gv-priority-orbit { display: flex; flex-direction: column; gap: 18px; }
  .gv-priority-orbit__centre { order: -1; width: min(82vw, 270px); margin-bottom: 4px; }
  .gv-priority-orbit__left,
  .gv-priority-orbit__right { display: contents; }
  .gv-priority-orbit .gv-card { width: 100%; }
}


/* Twenty Twenty-Five compatibility */
body { overflow-x: hidden; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.gv-site-header {
  background: #fff;
  border-bottom: 1px solid var(--gv-border);
  padding: 16px clamp(20px, 4vw, 64px);
}
.gv-site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.gv-site-header .wp-block-site-title {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.2;
  font-weight: 800;
}
.gv-site-header .wp-block-site-title a { color: var(--gv-purple-dark); text-decoration: none; }
.gv-site-header .wp-block-site-logo img { max-height: 58px; width: auto; }
.gv-site-main { margin: 0; padding: 0; }
.gv-site-main > .wp-block-post-content { margin-block-start: 0; }
.gv-site-footer {
  background: var(--gv-purple-dark);
  color: #fff;
  padding: 34px clamp(20px, 4vw, 64px);
  text-align: center;
}
.gv-site-footer p { color: #fff; margin: 0 auto; max-width: 950px; font-size: .94rem; line-height: 1.55; }

/* Hide any inherited Twenty Twenty-Five navigation or duplicate headers. */
.wp-block-template-part nav,
.wp-block-navigation,
header .wp-block-navigation { display: none !important; }

/* Keep campaign content comfortably sized in the block theme. */
.gv-section > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.gv-page-content > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 1180px;
}

@media (max-width: 781px) {
  .gv-site-header { padding: 13px 18px; }
  .gv-site-header__inner { justify-content: center; text-align: center; }
  .gv-site-header .wp-block-site-logo { display: none; }
  .gv-site-footer { padding: 28px 20px; }
}


/* v2.0.1: frameless transparent portrait on the Why I’m Running page. */
body.gv-why-running-page .gv-priority-portrait,
body.gv-why-running-page .gv-about__portrait,
body.gv-why-running-page figure.wp-block-image.aligncenter,
body.gv-why-running-page .wp-block-image.gv-standing-portrait {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

body.gv-why-running-page .gv-priority-portrait img,
body.gv-why-running-page .gv-about__portrait img,
body.gv-why-running-page figure.wp-block-image.aligncenter img,
body.gv-why-running-page .wp-block-image.gv-standing-portrait img {
  display: block;
  width: auto;
  max-width: min(100%, 520px);
  height: auto;
  max-height: 720px;
  margin-inline: auto;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body.gv-why-running-page .gv-priority-portrait__caption {
  display: none;
}

@media (max-width: 781px) {
  body.gv-why-running-page .gv-priority-portrait img,
  body.gv-why-running-page .gv-about__portrait img,
  body.gv-why-running-page figure.wp-block-image.aligncenter img,
  body.gv-why-running-page .wp-block-image.gv-standing-portrait img {
    max-width: min(92vw, 390px);
    max-height: 590px;
  }
}

/* v2.0.2: force the centre standing portrait to be completely frameless. */
.gv-priority-layout__portrait,
.gv-priority-layout__portrait > *,
.gv-priority-layout__portrait figure,
.gv-priority-layout__portrait .wp-block-image,
.gv-priority-portrait,
.gv-priority-portrait > *,
.gv-standing-portrait,
.gv-standing-portrait > *,
figure.gv-standing-portrait,
.wp-block-image.gv-standing-portrait,
.wp-block-image.gv-standing-portrait > * {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.gv-priority-layout__portrait::before,
.gv-priority-layout__portrait::after,
.gv-priority-portrait::before,
.gv-priority-portrait::after,
.gv-standing-portrait::before,
.gv-standing-portrait::after,
figure.gv-standing-portrait::before,
figure.gv-standing-portrait::after {
  content: none !important;
  display: none !important;
}

.gv-priority-layout__portrait img,
.gv-priority-portrait img,
.gv-standing-portrait img,
figure.gv-standing-portrait img,
.wp-block-image.gv-standing-portrait img {
  display: block !important;
  width: auto !important;
  max-width: min(100%, 540px) !important;
  height: auto !important;
  max-height: 760px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  filter: none !important;
}

/* Remove Twenty Twenty-Five duotone/filter wrappers from this portrait only. */
.gv-priority-layout__portrait .wp-duotone,
.gv-priority-portrait .wp-duotone,
.gv-standing-portrait .wp-duotone {
  filter: none !important;
}

@media (max-width: 781px) {
  .gv-priority-layout__portrait img,
  .gv-priority-portrait img,
  .gv-standing-portrait img,
  figure.gv-standing-portrait img,
  .wp-block-image.gv-standing-portrait img {
    max-width: min(92vw, 400px) !important;
    max-height: 620px !important;
  }
}
