/*
Theme Name: The Vacancy Project
Theme URI: https://thevacancyproject.org
Author: Petaluma Urban Chat
Description: Custom theme for The Vacancy Project — From Vacant to Vibrant. Petaluma's vacancy map, listings, and coalition site.
Version: 2.2.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: vacancy-project
*/

:root {
  /* From Vacant to Vibrant — redesign palette (clean/poppy, no longer mirroring urbanchat.org) */
  --vp-cream: #fdf8ee;         /* warm page background */
  --vp-cream-deep: #f6eeda;    /* deeper cream for alt sections */
  --vp-yellow: #f7d354;        /* sunny color-block sections */
  --vp-ink: #22271f;           /* soft warm black — headings/body */
  --vp-body: #3a4034;
  --vp-green: #90c715;         /* TVP lime — kept for map/legend continuity + accents */
  --vp-green-dark: #17603a;    /* deep civic green — buttons, links, dark section */
  --vp-green-deep: #10432a;    /* darkest green — dark section background */
  --vp-pink: #ff57c1;          /* TVP signature accent */
  --vp-sky: #57b8e8;
  --vp-orange: #e2703a;
  --vp-muted: #6d7266;
  --vp-grey: #6d6e70;
  --vp-grey-warm: #8c8a87;
  --vp-panel: #ffffff;
  --vp-bg-alt: #f6eeda;
  --vp-border: #e6ddca;
  --vp-radius: 22px;
  --vp-radius-sm: 12px;
  --vp-shadow: 0 2px 16px rgb(34 39 31 / 10%);
  --vp-shadow-lift: 0 14px 40px rgb(34 39 31 / 14%);
  --vp-font-heading: 'Bricolage Grotesque', 'Avenir Next', -apple-system, BlinkMacSystemFont, sans-serif;
  --vp-font-body: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  --vp-header-h: 76px;
  --vp-maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Anchored targets land fully below the sticky header instead of being cut off. */
[id] { scroll-margin-top: calc(var(--vp-header-h) + 24px); }

/* Keyboard users can jump the nav; invisible until focused. */
.vp-skiplink {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--vp-green-deep); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 0 0 12px 12px; text-decoration: none;
  transition: top .15s ease;
}
.vp-skiplink:focus { top: 0; }

/* Visible only to screen readers (headings that must exist for structure). */
.vp-sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

body {
  font-family: var(--vp-font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--vp-body);
  background: var(--vp-cream);
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--vp-font-heading);
  color: var(--vp-ink);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

a { color: inherit; }
p a, li a, dd a {
  color: var(--vp-green-dark);
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
p a:hover, li a:hover { color: var(--vp-ink); }

.vp-container { max-width: var(--vp-maxw); margin: 0 auto; padding: 0 28px; }
.vp-container--narrow { max-width: 800px; }

/* Highlighted word (hero): hand-drawn-ish sweep behind the text */
.vp-mark {
  position: relative; white-space: nowrap;
  background: linear-gradient(104deg, transparent 0.6%, var(--vp-yellow) 2.4%, var(--vp-yellow) 97.8%, transparent 99%);
  border-radius: .3em .5em .4em .4em;
  padding: 0 .12em;
}
.vp-mark--pink { background: linear-gradient(104deg, transparent 0.6%, #ffc9e9 2.4%, #ffc9e9 97.8%, transparent 99%); }

/* ---------- Eyebrow ---------- */
.vp-eyebrow {
  font-family: var(--vp-font-body); font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; font-size: .8rem;
  color: var(--vp-pink); margin-bottom: 14px;
}

/* ---------- Header ---------- */
.vp-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--vp-cream);
  border-bottom: 1px solid var(--vp-border);
  height: var(--vp-header-h);
  display: flex; align-items: center;
}
.vp-header__inner {
  width: 100%; max-width: var(--vp-maxw); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.vp-logo {
  text-decoration: none; color: var(--vp-ink);
  display: flex; align-items: center; gap: 13px; min-width: 0;
}
.vp-logo__scape { height: 32px; width: auto; flex: 0 0 auto; }
.vp-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.vp-logo__title {
  font-family: var(--vp-font-heading); font-weight: 800; font-size: 1.24rem;
  color: var(--vp-ink); letter-spacing: -0.01em; white-space: nowrap;
}
.vp-logo small {
  font-family: var(--vp-font-body); font-weight: 700; font-size: .62rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--vp-muted); margin-top: 3px;
}
@media (max-width: 640px) {
  .vp-logo__scape { display: none; }
  .vp-logo small { display: none; }
}

.vp-nav { display: flex; align-items: center; gap: 6px; }

.vp-nav__group { position: relative; }
.vp-nav__top,
.vp-nav > a {
  font-family: var(--vp-font-body); font-weight: 600; font-size: .98rem;
  color: var(--vp-ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 9px 14px; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.vp-nav__top:hover, .vp-nav > a:hover { background: var(--vp-cream-deep); }
.vp-nav__top .vp-caret {
  width: 9px; height: 9px; flex: 0 0 auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s ease;
}
.vp-nav__group.is-open .vp-caret { transform: rotate(-135deg) translateY(-2px); }

.vp-nav__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 230px;
  background: #fff; border: 1px solid var(--vp-border); border-radius: 18px;
  box-shadow: var(--vp-shadow-lift);
  padding: 10px;
  display: none; flex-direction: column;
}
.vp-nav__group.is-open .vp-nav__menu { display: flex; }
.vp-nav__menu a {
  font-weight: 600; font-size: .96rem; color: var(--vp-ink); text-decoration: none;
  padding: 10px 14px; border-radius: 12px;
  display: flex; align-items: baseline; gap: 8px;
}
.vp-nav__menu a:hover { background: var(--vp-cream); color: var(--vp-green-dark); }
.vp-nav__menu a small { font-weight: 500; color: var(--vp-muted); font-size: .8rem; }
.vp-nav__menu a.is-active { color: var(--vp-green-dark); }
.vp-nav__sep { height: 1px; background: var(--vp-border); margin: 8px 10px; }

.vp-nav a.vp-nav__cta {
  background: var(--vp-green-dark); color: #fff; font-weight: 700;
  padding: 11px 24px; margin-left: 10px; border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.vp-nav a.vp-nav__cta:hover { background: var(--vp-green-deep); transform: translateY(-1px); }

.vp-nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.vp-nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--vp-ink); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 940px) {
  .vp-nav-toggle { display: block; }
  .vp-nav {
    display: none; position: absolute; top: var(--vp-header-h); left: 0; right: 0;
    background: var(--vp-cream); border-bottom: 1px solid var(--vp-border);
    flex-direction: column; align-items: stretch; padding: 14px 24px 26px;
    max-height: calc(100vh - var(--vp-header-h)); overflow-y: auto;
    box-shadow: 0 24px 40px rgb(34 39 31 / 12%);
  }
  .vp-nav.is-open { display: flex; gap: 2px; }
  .vp-nav__group { width: 100%; }
  .vp-nav__top { width: 100%; justify-content: space-between; padding: 13px 8px; border-radius: 10px; }
  .vp-nav__menu {
    position: static; transform: none; min-width: 0; box-shadow: none;
    border: 0; background: transparent; padding: 0 0 6px 14px;
  }
  .vp-nav > a { padding: 13px 8px; }
  .vp-nav a.vp-nav__cta { margin: 14px 0 0; text-align: center; justify-content: center; }
}

/* ---------- Buttons ---------- */
.vp-btn {
  display: inline-block;
  font-family: var(--vp-font-body); font-weight: 700; font-size: 1.02rem;
  background: var(--vp-green-dark); color: #fff; text-decoration: none;
  padding: 15px 34px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.vp-btn:hover { background: var(--vp-green-deep); transform: translateY(-2px); box-shadow: 0 8px 20px rgb(23 96 58 / 25%); }
.vp-btn--green { background: var(--vp-green-dark); }
.vp-btn--pink { background: var(--vp-pink); color: #fff; }
.vp-btn--pink:hover { background: #e33da6; box-shadow: 0 8px 20px rgb(255 87 193 / 30%); }
.vp-btn--dark { background: var(--vp-ink); }
.vp-btn--dark:hover { background: #000; box-shadow: 0 8px 20px rgb(0 0 0 / 22%); }
.vp-btn--ghost { background: transparent; color: var(--vp-ink); box-shadow: inset 0 0 0 2px var(--vp-ink); }
.vp-btn--ghost:hover { background: var(--vp-ink); color: #fff; }
.vp-btn--light { background: #fff; color: var(--vp-green-deep); }
.vp-btn--light:hover { background: var(--vp-yellow); color: var(--vp-ink); box-shadow: none; }
.vp-btn--lime { background: var(--vp-green); color: var(--vp-ink); }
.vp-btn--lime:hover { background: #7fb210; color: var(--vp-ink); box-shadow: 0 8px 20px rgb(144 199 21 / 35%); }
.vp-btn--yellow { background: var(--vp-yellow); color: var(--vp-ink); }
.vp-btn--yellow:hover { background: #f0c832; color: var(--vp-ink); box-shadow: 0 8px 20px rgb(247 211 84 / 40%); }

/* ---------- Sections + organic arc dividers ---------- */
.vp-section { padding: 96px 0; position: relative; }
.vp-section--white { background: #fff; }
.vp-section--yellow { background: var(--vp-yellow); }
.vp-section--dark { background: var(--vp-green-deep); color: #e8f0e4; }
.vp-section--dark h2, .vp-section--dark h3, .vp-section--dark h4 { color: #fff; }
.vp-section--dark p a, .vp-section--dark li a { color: var(--vp-green); }
.vp-section--dark p a:hover, .vp-section--dark li a:hover { color: #fff; }
.vp-section--dark .vp-eyebrow { color: var(--vp-green); }

/* Arc: gentle full-width curve at the top of a section. Color = the section it sits on top of. */
.vp-arc { display: block; width: 100%; height: 72px; margin-bottom: -1px; }
@media (max-width: 700px) { .vp-arc { height: 36px; } }

.vp-section__lead { max-width: 62ch; margin-top: 20px; font-size: clamp(1.08rem, 1.8vw, 1.25rem); line-height: 1.65; }
.vp-prose > * + * { margin-top: 1.05em; }
.vp-prose { max-width: 68ch; }
.vp-prose ul, .vp-prose ol { padding-left: 1.3em; }
.vp-prose li + li { margin-top: .45em; }
.vp-prose h2, .vp-prose h3 { margin-top: 1.6em; }
.vp-prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.vp-prose img { border-radius: var(--vp-radius); }
.vp-prose blockquote {
  border-left: 4px solid var(--vp-pink);
  padding: 4px 0 4px 22px; font-size: 1.12rem; color: var(--vp-ink);
}

.vp-twocol {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) { .vp-twocol { grid-template-columns: 1fr; gap: 40px; } }

/* Fade-up reveal (JS adds .is-seen; motion-safe only) */
@media (prefers-reduced-motion: no-preference) {
  .vp-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
  .vp-reveal.is-seen { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.vp-hero {
  position: relative;
  padding: 84px 0 100px;
  overflow: clip;
}
.vp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .vp-hero__grid { grid-template-columns: 1fr; gap: 48px; } }
.vp-hero h1 { max-width: 12ch; }
.vp-hero__copy p { max-width: 54ch; }
.vp-hero__copy > p:first-of-type { margin-top: 26px; font-size: clamp(1.1rem, 1.9vw, 1.28rem); line-height: 1.6; color: var(--vp-ink); }
/* Client request: a full line space between the "vibrant" heading and the lead text. */
.vp-hero__copy h1 + p { margin-top: 28px; }
.vp-hero__copy > p + p { margin-top: 16px; }
.vp-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Arch-shaped Ken Burns slideshow ("poppy outie") */
.vp-hero__media { position: relative; }
.vp-arch {
  position: relative;
  border-radius: 999px 999px var(--vp-radius) var(--vp-radius);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  background: var(--vp-green-deep);
  box-shadow: var(--vp-shadow-lift);
}
.vp-arch figure { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.vp-arch figure.is-active { opacity: 1; }
.vp-arch img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  /* On every figure (not just .is-active): the outgoing slide must keep its
     zoom while it crossfades out — tying the animation to .is-active made it
     snap back to scale(1) mid-fade. Incoming slides are restarted via JS. */
  .vp-arch figure img { animation: vp-kenburns 9s ease-out forwards; }
  @keyframes vp-kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.09) translate(-1.2%, -1.2%); }
  }
}
.vp-arch figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 56px 22px 18px;
  background: linear-gradient(to top, rgb(16 30 21 / 72%), transparent);
  color: #fff; font-size: .92rem; line-height: 1.5; font-weight: 500;
}
/* Whole slide clicks through to its listing. */
.vp-arch__link { position: absolute; inset: 0; z-index: 3; }
/* Decorative dots behind the arch */
.vp-hero__media::before {
  content: ""; position: absolute; z-index: -1;
  right: -34px; top: 40px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(var(--vp-pink) 2.6px, transparent 3px);
  background-size: 17px 17px; opacity: .8;
}
.vp-hero__media::after {
  content: ""; position: absolute; z-index: -1;
  left: -46px; bottom: -30px; width: 130px; height: 130px; border-radius: 50%;
  background: var(--vp-yellow);
}

/* ---------- Walk gallery (horizontal snap scroll) ---------- */
.vp-walk { overflow: clip; }
.vp-walk__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.vp-walk__track {
  display: flex; gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 48px 28px 26px;
  margin: 0 -28px;
  scrollbar-width: thin;
  scrollbar-color: var(--vp-green-dark) transparent;
}
.vp-walk__track::after { content: ""; flex: 0 0 2px; }
.vp-walkcard {
  flex: 0 0 min(340px, 78vw);
  scroll-snap-align: center;
  background: #fff;
  border-radius: var(--vp-radius);
  box-shadow: var(--vp-shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.vp-walkcard img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
/* every other card gets the arch top — playful rhythm */
.vp-walkcard:nth-child(odd) { border-radius: 999px 999px var(--vp-radius) var(--vp-radius); }
.vp-walkcard:nth-child(odd) img { aspect-ratio: 4 / 3.6; }
.vp-walkcard figcaption {
  padding: 20px 24px 26px; font-size: .98rem; line-height: 1.55; color: var(--vp-body);
}
.vp-walkcard .vp-walkcard__n {
  font-family: var(--vp-font-heading); font-weight: 800; font-size: .82rem;
  color: var(--vp-pink); display: block; margin-bottom: 6px; letter-spacing: .08em;
}
.vp-walk__nav { display: flex; gap: 10px; }
.vp-walk__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--vp-ink);
  background: transparent; cursor: pointer; font-size: 1.2rem; color: var(--vp-ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.vp-walk__btn:hover { background: var(--vp-ink); color: #fff; }

/* ---------- Big link row (See the map · Read the data · In the news) ---------- */
.vp-linkrow { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.vp-linkrow a {
  font-family: var(--vp-font-heading); font-weight: 700; font-size: 1.05rem;
  color: var(--vp-ink); text-decoration: none;
  background: #fff; border: 2px solid var(--vp-ink); border-radius: 999px;
  padding: 12px 26px;
  transition: transform .15s ease, background .15s ease;
}
.vp-linkrow a:hover { background: var(--vp-ink); color: #fff; transform: translateY(-2px); }

/* ---------- Stat chips ---------- */
.vp-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; }
.vp-stat {
  background: #fff; border-radius: var(--vp-radius); padding: 22px 30px;
  box-shadow: var(--vp-shadow); min-width: 180px;
}
.vp-stat b {
  display: block; font-family: var(--vp-font-heading); font-weight: 800;
  font-size: 2.1rem; color: var(--vp-green-dark); line-height: 1.1;
}
.vp-stat span { font-size: .92rem; font-weight: 600; color: var(--vp-muted); }

/* ---------- Map preview ---------- */
.vp-mapcircle { position: relative; align-self: center; justify-self: center; }
.vp-mapcircle img { border-radius: 50%; box-shadow: var(--vp-shadow-lift); }
.vp-mapcircle::before {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  border: 3px dashed var(--vp-green); opacity: .7;
  pointer-events: none;
}

/* ---------- Playbook cards (dark section) ---------- */
.vp-playbook {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px; margin: 44px 0;
  counter-reset: play;
}
.vp-play {
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--vp-radius);
  padding: 28px 26px;
  counter-increment: play;
}
.vp-play::before {
  content: "0" counter(play);
  font-family: var(--vp-font-heading); font-weight: 800; font-size: 1rem;
  color: var(--vp-yellow); display: block; margin-bottom: 12px; letter-spacing: .1em;
}
.vp-play h4 { color: #fff; margin-bottom: 8px; }
.vp-play p { font-size: .95rem; color: #cfe0cd; }

.vp-callout {
  background: var(--vp-yellow); color: var(--vp-ink);
  border-radius: var(--vp-radius);
  padding: 40px 44px;
  margin: 48px 0 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.vp-callout p {
  font-family: var(--vp-font-heading); font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.3; max-width: 30ch;
  color: var(--vp-ink);
}

/* ---------- City strip ---------- */
.vp-citygrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px;
  margin: 40px 0;
}
.vp-citygrid figure { text-align: center; }
.vp-citygrid img {
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
  border-radius: var(--vp-radius-sm);
}
.vp-citygrid figure:nth-child(odd) img { border-radius: 999px 999px var(--vp-radius-sm) var(--vp-radius-sm); aspect-ratio: 4 / 4; }
.vp-citygrid figcaption { margin-top: 10px; font-size: .88rem; font-weight: 600; }
.vp-section--dark .vp-citygrid figcaption { color: #cfe0cd; }

/* ---------- City case studies (What other cities have done) ---------- */
.vp-citycase {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #fff; border-radius: var(--vp-radius);
  box-shadow: var(--vp-shadow); overflow: hidden;
}
.vp-citycase__img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.vp-citycase--flip .vp-citycase__img { order: 2; }
.vp-citycase__body { padding: 44px 46px; align-self: center; }
@media (max-width: 860px) {
  .vp-citycase { grid-template-columns: 1fr; }
  .vp-citycase__img { height: auto; min-height: 0; aspect-ratio: 16 / 10; order: 0; }
  .vp-citycase__body { padding: 26px 24px 34px; }
}

/* ---------- Generic page hero ---------- */
.vp-page-title { padding: 76px 0 0; }
.vp-page-title h1 { max-width: 20ch; }

/* ---------- News ---------- */
.vp-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.vp-filter a {
  font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--vp-ink);
  border: 2px solid var(--vp-ink); border-radius: 999px; padding: 8px 20px;
  transition: background .15s ease, color .15s ease;
}
.vp-filter a:hover { background: var(--vp-cream-deep); }
.vp-filter a.is-active { background: var(--vp-ink); color: #fff; }

.vp-newsgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 28px; padding: 44px 0 96px;
}
.vp-newscard {
  background: #fff; border-radius: var(--vp-radius); overflow: hidden;
  box-shadow: var(--vp-shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.vp-newscard:hover { transform: translateY(-4px); box-shadow: var(--vp-shadow-lift); }
.vp-newscard__img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--vp-cream-deep); }
.vp-newscard__body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vp-newscard__tag {
  align-self: flex-start;
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--vp-pink);
}
.vp-newscard__title { font-family: var(--vp-font-heading); font-weight: 700; font-size: 1.28rem; color: var(--vp-ink); line-height: 1.25; }
.vp-newscard__excerpt { font-size: .95rem; color: var(--vp-body); }
.vp-newscard__date { margin-top: auto; padding-top: 10px; font-size: .85rem; color: var(--vp-muted); font-weight: 600; }

/* ---------- Listings search ---------- */
.vp-listsearch { margin-top: 30px; }
.vp-listsearch input[type="search"] {
  width: min(440px, 100%);
  font-family: var(--vp-font-body); font-size: 1rem; color: var(--vp-ink);
  background: #fff; border: 2px solid var(--vp-border); border-radius: 999px;
  padding: 13px 22px;
  transition: border-color .15s ease;
}
.vp-listsearch input:focus { outline: none; border-color: var(--vp-green-dark); }
.vp-listsearch__empty { margin-top: 28px; font-weight: 600; color: var(--vp-muted); }

/* ---------- Listings grid ---------- */
.vp-listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; padding: 48px 0 96px; }
.vp-card {
  background: #fff; border-radius: var(--vp-radius); overflow: hidden;
  box-shadow: var(--vp-shadow);
  text-decoration: none; display: block; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}
.vp-card:hover { transform: translateY(-4px); box-shadow: var(--vp-shadow-lift); }
.vp-card__img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--vp-cream-deep); }
.vp-card__body { padding: 20px 24px 24px; }
.vp-card__title { font-family: var(--vp-font-heading); font-weight: 700; font-size: 1.3rem; color: var(--vp-ink); line-height: 1.25; }
.vp-card__meta { margin-top: 6px; font-size: .92rem; color: var(--vp-muted); }
.vp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--vp-font-body); font-weight: 700; font-size: .78rem;
  padding: 5px 14px; border-radius: 999px; margin-top: 14px;
  background: var(--vp-cream); color: var(--vp-ink);
}
.vp-badge__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--vp-muted); }
.vp-badge--occupied { background: #e3f4e0; color: var(--vp-green-dark); }
.vp-badge--occupied .vp-badge__dot { background: var(--vp-green-dark); }

/* ---------- Listings infinite scroll ---------- */
.vp-loadmore { display: flex; justify-content: center; padding: 8px 0 64px; min-height: 40px; }
.vp-loadmore__spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--vp-border); border-top-color: var(--vp-green-dark);
  opacity: 0; animation: vp-spin 0.8s linear infinite;
}
.vp-loadmore.is-loading .vp-loadmore__spinner { opacity: 1; }
@keyframes vp-spin { to { transform: rotate(360deg); } }

/* ---------- Single vacancy ---------- */
.vp-single__hero { max-height: 540px; overflow: hidden; border-radius: var(--vp-radius); margin-top: 40px; box-shadow: var(--vp-shadow-lift); }
.vp-single__hero img { width: 100%; object-fit: cover; max-height: 540px; }
.vp-single__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; padding: 48px 0 96px; align-items: start; }
@media (max-width: 860px) { .vp-single__grid { grid-template-columns: 1fr; } }
.vp-facts {
  background: #fff; border-radius: var(--vp-radius);
  box-shadow: var(--vp-shadow);
  padding: 28px 30px; position: sticky; top: calc(var(--vp-header-h) + 24px);
}
.vp-facts h3 { font-size: 1.2rem; margin-bottom: 14px; }
.vp-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .95rem; }
.vp-facts dt { font-weight: 700; color: var(--vp-ink); font-size: .82rem; }
.vp-facts dd { color: var(--vp-body); }
.vp-facts .vp-btn { width: 100%; text-align: center; margin-top: 22px; }

/* ---------- Type chips (shared with map) ---------- */
.vp-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--vp-font-body); font-weight: 700; font-size: .82rem;
  background: #fff; border: 1px solid var(--vp-border); border-radius: 999px;
  padding: 5px 14px; color: var(--vp-ink);
}
.vp-chip__dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgb(0 0 0 / 35%); }

.vp-chip--tip { position: relative; cursor: help; }
.vp-chip--tip::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 10px); left: 0;
  width: min(320px, 80vw);
  background: var(--vp-ink); color: #fff;
  padding: 10px 14px; border-radius: 12px;
  font-size: .85rem; font-weight: 400; line-height: 1.5;
  opacity: 0; visibility: hidden; transition: opacity .15s ease;
  pointer-events: none; z-index: 60;
}
.vp-chip--tip::before {
  content: ""; position: absolute; bottom: calc(100% + 4px); left: 22px;
  border: 6px solid transparent; border-top-color: var(--vp-ink);
  opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 60;
}
.vp-chip--tip:hover::after, .vp-chip--tip:focus::after,
.vp-chip--tip:hover::before, .vp-chip--tip:focus::before { opacity: 1; visibility: visible; }

/* ---------- Tool cards / Get involved cards ---------- */
.vp-toolcards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px; margin: 44px 0 0;
}
.vp-toolcard {
  background: #fff; border-radius: var(--vp-radius); box-shadow: var(--vp-shadow);
  padding: 34px 32px;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.vp-toolcard--flag {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--vp-cream-deep); color: var(--vp-muted);
  border-radius: 999px; padding: 4px 12px;
}
.vp-toolcard--flag.is-live { background: #e3f4e0; color: var(--vp-green-dark); }
.vp-toolcard h3 { font-size: 1.4rem; }
.vp-toolcard p { font-size: .98rem; }
.vp-toolcard .vp-btn { margin-top: auto; padding: 11px 26px; font-size: .95rem; }

/* ---------- Contact form ---------- */
.vp-form { display: grid; gap: 18px; max-width: 620px; }
.vp-form label { font-weight: 700; font-size: .92rem; color: var(--vp-ink); display: block; margin-bottom: 6px; }
.vp-form input[type="text"],
.vp-form input[type="email"],
.vp-form textarea {
  width: 100%;
  font-family: var(--vp-font-body); font-size: 1rem; color: var(--vp-ink);
  background: #fff; border: 2px solid var(--vp-border); border-radius: 14px;
  padding: 13px 16px;
  transition: border-color .15s ease;
}
.vp-form input:focus, .vp-form textarea:focus { outline: none; border-color: var(--vp-green-dark); }
.vp-form textarea { min-height: 160px; resize: vertical; }
.vp-form .vp-btn { justify-self: start; }
.vp-form__hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.vp-form--compact { gap: 12px; width: 100%; margin-top: 6px; }
.vp-form--compact input[type="text"],
.vp-form--compact input[type="email"] { padding: 10px 14px; }
.vp-form--compact .vp-btn { margin-top: 4px; }
.vp-form__check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .92rem; line-height: 1.45; color: var(--vp-body); cursor: pointer;
}
.vp-form__check input { margin-top: 4px; accent-color: var(--vp-green-dark); flex: 0 0 auto; }
.vp-form__check small { color: var(--vp-muted); }
.vp-notice {
  background: #e3f4e0; color: var(--vp-green-dark); font-weight: 700;
  border-radius: 14px; padding: 16px 22px; margin: 24px 0 0;
}
.vp-notice--error { background: #fde4ef; color: #a1206b; }

/* ---------- Modal (coalition sign-on) ---------- */
.vp-modal {
  margin: auto; /* the global margin reset kills the UA's dialog centering */
  border: 0; border-radius: var(--vp-radius); padding: 0;
  max-width: 460px; width: calc(100vw - 40px);
  box-shadow: var(--vp-shadow-lift);
  color: var(--vp-body);
}
.vp-modal::backdrop { background: rgb(16 30 21 / 55%); }
.vp-modal__inner { padding: 34px 32px 36px; position: relative; }
.vp-modal__inner h3 { padding-right: 36px; }
.vp-modal__lead { margin: 10px 0 18px; font-size: .95rem; line-height: 1.55; }
.vp-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--vp-cream-deep); color: var(--vp-ink); font-size: 20px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.vp-modal__close:hover { background: var(--vp-yellow); }

/* ---------- Social feed (Blue Zones-style treatment) ---------- */
.vp-social { background: var(--vp-cream-deep); }
.vp-social__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px;
}
.vp-social__follow { display: flex; gap: 12px; flex-wrap: wrap; }
.vp-social__follow .vp-btn { padding: 12px 26px; font-size: .96rem; }
.vp-social__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 26px; margin-top: 44px;
  align-items: start;
}
.vp-social__grid--empty { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
/* Native post cards — the theme's own copies of the photos, first-party only. */
.vp-igcard {
  background: #fff; border-radius: var(--vp-radius); overflow: hidden;
  box-shadow: var(--vp-shadow);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.vp-igcard:hover { transform: translateY(-4px); box-shadow: var(--vp-shadow-lift); }
.vp-igcard__img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: var(--vp-cream-deep); }
.vp-igcard__body { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vp-igcard__caption { font-size: .95rem; line-height: 1.5; color: var(--vp-body); }
.vp-igcard__meta {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; color: var(--vp-ink);
}
.vp-igcard__meta svg { width: 16px; height: 16px; fill: var(--vp-pink); flex: 0 0 auto; }
.vp-igcard__meta em { font-style: normal; font-weight: 600; color: var(--vp-muted); margin-left: auto; }
.vp-social__cta {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  background: #fff; border-radius: var(--vp-radius); box-shadow: var(--vp-shadow);
  padding: 34px 32px; text-decoration: none; color: var(--vp-body);
  transition: transform .15s ease, box-shadow .15s ease;
}
.vp-social__cta:hover { transform: translateY(-4px); box-shadow: var(--vp-shadow-lift); }
.vp-social__cta svg { width: 34px; height: 34px; fill: var(--vp-pink); }
.vp-social__cta b { font-family: var(--vp-font-heading); font-weight: 700; font-size: 1.3rem; color: var(--vp-ink); }
.vp-social__cta span { font-size: .95rem; }

/* ---------- Footer ---------- */
.vp-footer { background: var(--vp-ink); color: #c9cec2; margin-top: 0; }
.vp-footer__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 56px 0 44px;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}
.vp-footer__cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 22ch; }
.vp-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 44px; padding: 52px 0 0; }
@media (max-width: 900px) { .vp-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .vp-footer__grid { grid-template-columns: 1fr; } }
/* h3 for correct heading order; kept at the old h4 size. */
.vp-footer h4, .vp-footer .vp-footer__h { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.vp-footer ul { list-style: none; }
.vp-footer li { margin: 9px 0; font-size: .96rem; }
.vp-footer a { color: #e4e8de; text-decoration: none; }
.vp-footer a:hover { color: var(--vp-green); }
.vp-footer a.vp-btn--light { color: var(--vp-green-deep); }
.vp-footer a.vp-btn--light:hover { color: var(--vp-ink); }
.vp-footer a.vp-btn--pink { color: #fff; }
.vp-footer__brand p { font-size: .96rem; max-width: 34ch; }
.vp-footer__brand .vp-logo__title { color: #fff; }
.vp-footer__uc {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 24px;
  text-decoration: none;
}
.vp-footer__uc img { width: 74px; height: auto; flex: 0 0 auto; }
.vp-footer__uc span {
  font-family: var(--vp-font-heading); font-weight: 700; font-size: 1.2rem;
  color: #fff; line-height: 1.15;
}
.vp-footer__uc:hover span { color: var(--vp-green); }
.vp-footer__social { display: flex; gap: 12px; margin-top: 18px; }
.vp-footer__social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / 30%);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.vp-footer__social a:hover { background: var(--vp-green-dark); border-color: var(--vp-green-dark); color: #fff; }
.vp-footer__social svg { width: 19px; height: 19px; fill: currentColor; }
.vp-footer__search { display: flex; gap: 8px; margin-top: 14px; }
.vp-footer__search input[type="search"] {
  flex: 1; min-width: 0;
  font-family: var(--vp-font-body); font-size: .95rem; color: #fff;
  background: rgb(255 255 255 / 8%); border: 1.5px solid rgb(255 255 255 / 25%);
  border-radius: 999px; padding: 10px 18px;
}
.vp-footer__search input::placeholder { color: #9aa091; }
.vp-footer__search input:focus { outline: none; border-color: var(--vp-green); }
.vp-footer__search button {
  border: 0; border-radius: 999px; background: var(--vp-green-dark); color: #fff;
  font-weight: 700; font-family: var(--vp-font-body); font-size: .9rem;
  padding: 10px 20px; cursor: pointer;
}
.vp-footer__search button:hover { background: var(--vp-green-deep); }
.vp-footer__legal {
  margin-top: 52px; padding: 26px 0 40px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: .85rem; color: #9aa091; line-height: 1.7;
}
