/*
Theme Name: Block Valley Link North
Theme URI: https://www.blockvalleylinknorth.org
Author: The Sutter Group
Author URI: https://sutter-group.com
Description: Lightweight, standalone advocacy theme for the Block Valley Link North coalition. Built around an action layer (petition, public-comment, donate, events, landowner report) powered by ACF, Gravity Forms, and Action Network embeds.
Version: 1.0.5
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.1
Text Domain: blockvalley
*/

/* Self-hosted modern typefaces (variable). */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/Archivo.woff2) format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/Inter.woff2) format("woff2");
}
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/Anton.woff2) format("woff2");
}

/* -------------------------------------------------------------------------
   Design tokens. Warm charcoal + cream + one red accent, with a single coral
   highlight for use on dark surfaces. Two neutral text greys.
   ---------------------------------------------------------------------- */
:root {
  --bv-ground: #fdfdfc;         /* page background (soft white) */
  --bv-panel: #eef1f6;          /* cards / light blocks (cool) */
  --bv-ink: #16202e;            /* headings + body text (navy-ink) */
  --bv-ink-soft: #48546a;       /* secondary text on light */
  --bv-steel: #626d7e;          /* muted labels on light */
  --bv-line: #e2e7ee;           /* hairlines / borders */
  --bv-pine: #1f4373;           /* navy secondary (buttons/links on light) */
  --bv-pine-deep: #193c64;      /* deep navy base, matched to the logo (header/footer/dark blocks) */
  --bv-signal: #e5462b;         /* the accent: red (lightened) */
  --bv-signal-deep: #c2361b;    /* red hover/deep */
  --bv-coral: var(--bv-signal);  /* collapsed into the red accent: one accent, matches the navy+red logo */
  --bv-on-dark: #dbe3ee;        /* primary text on navy */
  --bv-on-dark-soft: #a6b3c5;   /* muted text on navy */
  --bv-heading: #193c64;        /* section/hero headings: the logo navy */

  --bv-poster: "Anton", "Archivo", system-ui, sans-serif;         /* heavy condensed impact */
  --bv-display: "Archivo", system-ui, -apple-system, sans-serif;
  --bv-serif: "Archivo", system-ui, -apple-system, sans-serif;   /* kept for template refs */
  --bv-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bv-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --bv-measure: 68ch;
  --bv-pad: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bv-ground);
  color: var(--bv-ink);
  font-family: var(--bv-sans);
  font-size: 1.03rem;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4 { text-wrap: balance; color: var(--bv-ink); }
h1, h2 { font-family: var(--bv-poster); font-weight: 400; line-height: 1.02; letter-spacing: -0.005em; text-transform: uppercase; color: var(--bv-heading); }
h3, h4 { font-family: var(--bv-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
a { color: var(--bv-pine); }

/* Standard heading tiers. Every heading pulls one of these, so sizes never drift.
   (Family / weight / case / color are already unified on h1-h4 above.) */
.bv-section-title { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); }   /* big section intros */
.bv-page-title   { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }      /* interior page H1 */
.bv-subhead      { font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.55rem); }  /* sub-section H2 */
.bv-subhead--lg  { font-size: clamp(1.6rem, 1.3rem + 1vw, 1.9rem); }      /* emphasis sub-section */
.bv-card-title   { font-size: 1.2rem; }                                    /* card / list-item H3 */

/* Responsive 16:9 video embed. */
.bv-video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.bv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.bv-wrap { max-width: 1060px; margin-inline: auto; padding-inline: var(--bv-pad); }
.bv-eyebrow {
  font-family: var(--bv-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bv-signal); font-weight: 500;
}

/* The Threat: text stays in a readable column, but figures break out wide so the
   tower scale and the route map read large. Click any figure to open it full size. */
.bv-threat .bv-content img {
  display: block; width: auto; height: auto;
  max-width: min(1280px, 94vw); max-height: 82vh;
  margin: 2.25rem 0 2.25rem 50%; transform: translateX(-50%);
  border-radius: 10px; box-shadow: 0 18px 50px rgba(16,30,52,.22);
  cursor: zoom-in;
}
@media (max-width: 640px) {
  .bv-threat .bv-content img { max-height: 70vh; margin-block: 1.5rem; box-shadow: 0 10px 26px rgba(16,30,52,.2); }
}

/* The Threat: full-bleed hero image with the page title over a navy scrim. */
.bv-threat-hero {
  position: relative; background-color: var(--bv-pine-deep);
  background-size: cover; background-position: center 55%;
  min-height: clamp(300px, 46vh, 540px); display: flex; align-items: flex-end;
}
.bv-threat-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,30,52,.22) 0%, rgba(16,30,52,.55) 55%, rgba(16,30,52,.85) 100%);
}
.bv-threat-hero__inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(2rem, 5vw, 3.5rem); }
.bv-threat-hero__title { color: #fff; margin: 0.35rem 0 0; font-size: clamp(2.8rem, 1.6rem + 4.5vw, 5.4rem); line-height: 1; }

/* News listing rows: image beside text on desktop, stacked on phones. */
.bv-news-item { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: start; }
.bv-news-item--full { grid-template-columns: 1fr; }
.bv-news-thumb { display: block; }
.bv-news-thumb img { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; display: block; }
@media (max-width: 560px) {
  .bv-news-item { grid-template-columns: 1fr; gap: 0.9rem; }
  .bv-news-thumb img { height: 190px; }
}

/* Primary action button. One accent color, everywhere it matters. */
.bv-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--bv-sans);
  font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; line-height: 1;
  background: var(--bv-signal); color: #fff; text-decoration: none;
  padding: 0.95rem 1.8rem; border-radius: 7px; border: 0; cursor: pointer;
  box-shadow: 0 4px 14px rgba(229,70,43,.28);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.bv-btn:hover { background: var(--bv-signal-deep); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(229,70,43,.42); }
/* Header call-to-action gets extra presence. */
.bv-site-header .bv-btn { font-size: 0.98rem; padding: 0.8rem 1.6rem; box-shadow: 0 6px 18px rgba(229,70,43,.4); }
.bv-site-header .bv-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(229,70,43,.55); }
.bv-btn--ghost { background: transparent; color: var(--bv-pine); border: 1.5px solid var(--bv-line); box-shadow: none; }
.bv-btn--ghost:hover { background: var(--bv-panel); color: var(--bv-pine); border-color: #cfd8e2; box-shadow: none; transform: translateY(-1px); }
.bv-btn--donate { background: var(--bv-pine); color: #fff; }
.bv-btn--donate:hover { background: #0e2440; box-shadow: 0 8px 20px rgba(16,30,52,.35); }
.bv-btn--on-dark { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); box-shadow: none; }
.bv-btn--on-dark:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.65); box-shadow: none; }

/* "Fight the Tower" poster band. */
.bv-ftt-band { display: grid; grid-template-columns: minmax(0, 330px) 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.bv-ftt-poster { display: block; }
.bv-ftt-poster img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 20px 55px rgba(0,0,0,.45); }
@media (max-width: 720px) { .bv-ftt-band { grid-template-columns: 1fr; } .bv-ftt-poster { max-width: 300px; } }

/* "Chip in" prompt shown after someone takes an action. */
.bv-chipin {
  margin-top: 2.5rem; display: flex; align-items: center; gap: 1.2rem 1.5rem; flex-wrap: wrap;
  justify-content: space-between; background: var(--bv-pine-deep); color: var(--bv-on-dark);
  border-radius: 10px; padding: 1.5rem 1.7rem;
}
.bv-chipin strong { display: block; font-family: var(--bv-display); font-size: 1.2rem; color: #fff; margin-bottom: 0.2rem; }
.bv-chipin span { display: block; color: var(--bv-on-dark-soft); font-size: 0.95rem; max-width: 46ch; }
.bv-chipin .bv-btn { background: var(--bv-signal); color: #fff; flex: none; }
.bv-chipin .bv-btn:hover { background: var(--bv-signal-deep); }

/* Donate page layout. */
.bv-donate-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem 3rem; align-items: start; margin-top: 1.5rem; }
.bv-donate-grid .bv-fund-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.85rem; }
.bv-donate-grid .bv-fund-list li { position: relative; padding-left: 1.6rem; color: var(--bv-ink-soft); }
.bv-donate-grid .bv-fund-list li::before { content: "\2192"; position: absolute; left: 0; color: var(--bv-signal); font-weight: 700; }
@media (max-width: 760px) { .bv-donate-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   Motion + louder elements
   ---------------------------------------------------------------------- */
/* Scroll reveal */
.bv-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.bv-reveal.is-visible { opacity: 1; transform: none; }
.bv-actions .bv-card.bv-reveal:nth-child(2) { transition-delay: .1s; }
.bv-actions .bv-card.bv-reveal:nth-child(3) { transition-delay: .2s; }
.bv-actions .bv-card.bv-reveal:nth-child(4) { transition-delay: .3s; }

/* Urgency ticker */
.bv-ticker { background: var(--bv-signal); color: #fff; overflow: hidden; white-space: nowrap; border-bottom: 2px solid var(--bv-signal-deep); }
.bv-ticker__track { display: inline-block; padding: 0.55rem 0; animation: bv-marquee 28s linear infinite; }
.bv-ticker__track span { font-family: var(--bv-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 0 1.4rem; }
.bv-ticker__track b { color: #ffd9cf; }
.bv-ticker:hover .bv-ticker__track { animation-play-state: paused; }
@keyframes bv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Ken Burns hero */
.bv-hero { position: relative; overflow: hidden; background: var(--bv-pine-deep); }
/* Lift the naturally dark, hazy image so the towers and valley read clearly. */
.bv-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 42%; transform: scale(1.02); filter: brightness(1.16) contrast(1.12) saturate(1.15); animation: bv-kenburns 22s ease-out forwards; }
/* Lighter directional scrim: just enough behind the text on the left and along
   the bottom, clearing to fully transparent on the right so the image shows. */
.bv-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(16,30,52,0.78) 0%, rgba(16,30,52,0.5) 30%, rgba(16,30,52,0.22) 56%, rgba(16,30,52,0.05) 80%, rgba(16,30,52,0) 100%),
    linear-gradient(0deg, rgba(12,24,42,0.6) 0%, rgba(12,24,42,0.12) 30%, rgba(12,24,42,0) 50%);
}
/* Soft shadow keeps the headline legible over the brighter image. */
.bv-hero__inner { position: relative; z-index: 2; text-shadow: 0 3px 22px rgba(8,16,30,0.62); }
/* On phones, cover crops the wide aerial into a zoomed slice. Show the whole
   image as a full-width band at the top, with the copy stacked below it. */
@media (max-width: 700px) {
  .bv-hero__bg { background-size: 100% auto; background-position: center top; background-repeat: no-repeat; transform: none; animation: none; }
  .bv-hero::after { background: linear-gradient(0deg, rgba(16,30,52,0.55) 0%, rgba(16,30,52,0) 42%); }
  .bv-hero__inner { padding-top: calc(56.6vw + 1.25rem) !important; padding-bottom: 2.5rem !important; }
}
/* Big, loud hero call-to-action. */
.bv-hero .bv-btn--hero { font-size: 1.35rem; padding: 1.3rem 2.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; box-shadow: 0 14px 36px rgba(229,70,43,0.5); }
.bv-hero .bv-btn--hero:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(229,70,43,0.65); }
@keyframes bv-kenburns { from { transform: scale(1.02); } to { transform: scale(1.16); } }

/* Bold impact stats band */
.bv-impact { background: var(--bv-signal); color: #fff; }
.bv-impact .bv-wrap { padding-block: clamp(2.75rem, 6vw, 4.25rem); }
.bv-impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.75rem 1.5rem; }
.bv-impact .num { display: block; font-family: var(--bv-poster); font-weight: 400; font-size: clamp(2.6rem, 1.8rem + 2vw, 3.7rem); line-height: 0.85; letter-spacing: -0.01em; white-space: nowrap; }
.bv-impact .lbl { display: block; font-family: var(--bv-mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: #ffd6cb; margin-top: 0.55rem; }

/* Loud pre-footer CTA band */
.bv-cta { background: var(--bv-signal); color: #fff; }
.bv-cta .bv-wrap { padding-block: clamp(3rem, 7vw, 5rem); text-align: center; }
.bv-cta h2 { color: #fff; font-size: clamp(2.4rem, 1.5rem + 3.5vw, 4.6rem); margin: 0 0 0.6rem; }
.bv-cta p { color: #ffe2da; font-size: 1.15rem; margin: 0 auto 1.6rem; max-width: 52ch; }
.bv-cta .bv-btn { background: #fff; color: var(--bv-signal-deep); font-size: 1.05rem; padding: 1rem 2rem; }
.bv-cta .bv-btn:hover { background: #2b2420; color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.3); }

/* Animated petition progress fill */
.bv-petition__bar span { transform-origin: left; animation: bv-grow 1.2s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes bv-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Animated nav underline */
.bv-nav a { position: relative; }
.bv-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--bv-signal); transition: right .22s ease; }
.bv-nav a:hover::after { right: 0; }

@media (prefers-reduced-motion: reduce) {
  .bv-reveal { opacity: 1; transform: none; transition: none; }
  .bv-ticker__track { animation: none; }
  .bv-hero__bg { animation: none; transform: none; }
  .bv-petition__bar span { animation: none; }
}

/* Header / footer bands */
.bv-site-header { background: var(--bv-pine-deep); color: var(--bv-on-dark); }
.bv-site-header a { color: var(--bv-on-dark); }

/* Brand logo */
.bv-brand { display: inline-flex; align-items: center; }
.bv-brand img.custom-logo { height: 118px; width: auto; display: block; }
@media (max-width: 640px) { .bv-brand img.custom-logo { height: 66px; } }

/* Header + primary nav */
.bv-site-header { position: sticky; top: 0; z-index: 100; transition: transform .3s ease; will-change: transform; }
.bv-site-header.bv-header--hidden { transform: translateY(-100%); }
.bv-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; }
.bv-primary-nav { display: flex; align-items: center; gap: 1.75rem; }
.bv-nav { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; align-items: center; }
.bv-nav li { margin: 0; }
.bv-nav a { color: var(--bv-on-dark); text-decoration: none; font-weight: 500; font-size: 0.95rem; letter-spacing: -0.01em; transition: color .15s ease; }
.bv-nav a:hover { color: #fff; }
.bv-nav-toggle { display: none; }

@media (max-width: 860px) {
  .bv-nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 10px; background: transparent; border: 0; cursor: pointer; flex: 0 0 auto;
  }
  .bv-nav-toggle span { display: block; height: 2px; background: var(--bv-on-dark); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .bv-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .bv-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .bv-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .bv-primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bv-pine-deep); padding: 0.25rem var(--bv-pad) 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.12); box-shadow: 0 16px 30px rgba(0,0,0,0.28);
  }
  .bv-primary-nav.is-open { display: flex; }
  .bv-primary-nav .bv-nav { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .bv-primary-nav .bv-nav li { border-bottom: 1px solid rgba(255,255,255,0.09); }
  .bv-primary-nav .bv-nav a { display: block; padding: 1rem 0; font-size: 1.1rem; }
  .bv-primary-nav .bv-nav a::after { display: none; }
  .bv-primary-nav > .bv-btn { margin-top: 1.1rem; justify-content: center; }
}
.bv-site-footer { background: var(--bv-pine-deep); color: var(--bv-on-dark-soft); border-top: 3px solid var(--bv-signal); }
.bv-social { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--bv-on-dark-soft); text-decoration: none; font-family: var(--bv-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; transition: color .15s ease; }
.bv-social:hover { color: #fff; }
.bv-social svg { flex: none; }
.bv-footer-social { display: flex; align-items: center; gap: 1rem 1.75rem; flex-wrap: wrap; }
.bv-social--email { text-transform: none; letter-spacing: 0.01em; }
.bv-footer-badge-wrap { position: absolute; top: clamp(5rem, 9vw, 8rem); right: var(--bv-pad); margin: 0; }
.bv-footer-badge { width: 152px; height: 152px; object-fit: cover; border-radius: 50%; display: block; }
@media (max-width: 820px) {
  .bv-footer-badge-wrap { position: static; display: flex; justify-content: center; }
  .bv-footer-badge { width: 116px; height: 116px; }
}

/* Action-card grid (front page + take-action page) */
.bv-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(214px, 1fr)); gap: 1.25rem; }
.bv-actions .bv-card {
  display: flex; flex-direction: column;
  background: #fff; padding: 1.85rem; border: 1px solid var(--bv-line);
  border-top: 5px solid var(--bv-signal); border-radius: 4px 4px 12px 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.bv-actions .bv-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(16,30,52,.13); }
/* Reserve two title lines so the body copy starts at the same height in every card. */
.bv-actions .bv-card h3 { min-height: 2.3em; }
/* Pin the CTA to the bottom so all four buttons share one baseline. */
.bv-actions .bv-card .bv-btn {
  margin-top: auto; width: 100%; justify-content: space-between;
  white-space: nowrap; background: var(--bv-panel); color: var(--bv-pine);
  border: 0; box-shadow: none; font-size: 0.92rem;
}
.bv-actions .bv-card .bv-btn::after { content: "\2192"; font-size: 1.15em; line-height: 1; transition: transform .18s ease; }
.bv-actions .bv-card .bv-btn:hover,
.bv-actions .bv-card:hover .bv-btn { background: var(--bv-pine); color: #fff; transform: none; box-shadow: 0 6px 16px rgba(16,30,52,.22); }
.bv-actions .bv-card:hover .bv-btn::after { transform: translateX(3px); }

/* Stat blocks (The Threat) */
.bv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.15rem; margin: 2.25rem 0; }
.bv-stat { background: var(--bv-panel); padding: 1.7rem; border: 1px solid var(--bv-line); border-radius: 12px; }
.bv-stat b { display: block; font-family: var(--bv-poster); font-weight: 400; font-size: clamp(2.8rem, 2rem + 2vw, 3.8rem); line-height: 1.04; letter-spacing: 0; color: var(--bv-signal); text-transform: uppercase; }
.bv-stat strong { display: block; font-weight: 700; margin: 0.7rem 0 0.3rem; color: var(--bv-ink); }
.bv-stat span { display: block; color: var(--bv-ink-soft); font-size: 0.9rem; line-height: 1.5; }

/* In-content images and figures (The Threat, posts) */
.bv-content p { text-wrap: pretty; }
.bv-content img { max-width: 100%; height: auto; display: block; border-radius: 4px; }
.bv-content figure { margin: 1.9rem 0; }
.bv-content figcaption { font-family: var(--bv-mono); font-size: 0.74rem; letter-spacing: 0.02em;
  color: var(--bv-steel); margin-top: 0.55rem; }

/* Petition counter + progress bar */
.bv-petition__count { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.bv-petition__count strong { font-family: var(--bv-poster); font-weight: 400; font-size: 2.8rem; line-height: 1; color: var(--bv-signal); font-variant-numeric: tabular-nums; }
.bv-petition__count span { color: var(--bv-ink-soft); font-size: 0.95rem; }
.bv-petition__bar { height: 12px; background: var(--bv-line); border-radius: 999px; overflow: hidden; margin-bottom: 1.4rem; }
.bv-petition__bar span { display: block; height: 100%; background: var(--bv-signal); border-radius: 999px; transition: width 0.4s ease; }
.bv-petition .wpcf7 label { margin-top: 0.9rem; }
.bv-petition__form { max-width: 560px; }
.bv-petition__form .wpcf7 input:not([type="submit"]):not([type="checkbox"]) { max-width: 100%; width: 100%; }
.wpcf7 .bv-field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.wpcf7 .bv-field-row > label { flex: 1 1 180px; margin-top: 0.9rem; }
.wpcf7 .bv-field-row > label input { width: 100%; }

/* Contact Form 7 (all forms: contact, petition, action blocks) */
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 label { display: block; font-weight: 600; margin: 1.15rem 0 0.35rem; color: var(--bv-ink); }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  display: block; width: 100%; max-width: 560px; font: inherit;
  margin-top: 0.35rem; padding: 0.8rem 1rem;
  border: 1.5px solid var(--bv-line); border-radius: 8px;
  background: #fff; color: var(--bv-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: var(--bv-steel); }
.wpcf7 input:focus, .wpcf7 textarea:focus {
  outline: none; border-color: var(--bv-pine); box-shadow: 0 0 0 3px rgba(31,67,115,0.16);
}
.wpcf7 input[type="checkbox"] { margin-right: 0.4rem; }
.wpcf7 .wpcf7-list-item-label { font-weight: 400; }
.wpcf7 input[type="submit"] {
  display: inline-flex; margin-top: 1.6rem; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--bv-signal); color: #fff; border: 0;
  padding: 0.9rem 1.9rem; border-radius: 7px; max-width: none; width: auto;
  box-shadow: 0 4px 14px rgba(229,70,43,.28);
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--bv-signal-deep); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(229,70,43,.42); }

/* "What's at stake" photo gallery (masonry via columns) */
.bv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem 1rem; }
.bv-gallery__item { margin: 0; }
.bv-gallery__item a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.bv-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.bv-gallery__item a:hover img { transform: scale(1.04); }
.bv-gallery__item figcaption { font-family: var(--bv-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--bv-steel); margin-top: 0.5rem; }
.bv-gallery-empty { background: var(--bv-panel); border: 1px solid var(--bv-line); border-radius: 12px; padding: 2rem; }
.bv-gallery-empty p { color: var(--bv-ink-soft); max-width: 52ch; margin: 0 0 1.2rem; }

/* Lightbox */
.bv-lb { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center;
  background: rgba(10,16,12,0.92); padding: 4vw; cursor: zoom-out; }
.bv-lb.is-open { display: flex; }
.bv-lb img { max-width: 92vw; max-height: 82vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: default; }
.bv-lb__cap { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; color: var(--bv-on-dark);
  font-family: var(--bv-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.bv-lb__close { position: absolute; top: 1rem; right: 1.4rem; background: none; border: 0; color: #fff;
  font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* Property report form (native, not CF7) */
.bv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bv-report-form label { display: block; font-weight: 600; margin: 1.15rem 0 0.35rem; color: var(--bv-ink); }
.bv-report-form input[type="text"], .bv-report-form input[type="email"], .bv-report-form input[type="tel"], .bv-report-form textarea {
  display: block; width: 100%; max-width: 100%; font: inherit; margin-top: 0.35rem;
  padding: 0.8rem 1rem; border: 1.5px solid var(--bv-line); border-radius: 8px; background: #fff; color: var(--bv-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bv-report-form textarea { min-height: 130px; resize: vertical; }
.bv-report-form input:focus, .bv-report-form textarea:focus { outline: none; border-color: var(--bv-pine); box-shadow: 0 0 0 3px rgba(31,67,115,0.16); }
.bv-report-form .bv-field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.bv-report-form .bv-field-row > label { flex: 1 1 180px; }
.bv-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem 1.25rem; margin-top: 0.5rem; }
.bv-checks label, .bv-consent { display: flex; align-items: flex-start; gap: 0.5rem; font-weight: 400; margin: 0; }
.bv-report-form .bv-consent { font-weight: 400; margin-top: 1rem; color: var(--bv-ink-soft); font-size: 0.95rem; }
.bv-file { display: block; width: 100%; max-width: 100%; box-sizing: border-box; margin-top: 0.5rem; font: inherit; }
.bv-file::file-selector-button { font: inherit; font-weight: 600; cursor: pointer; margin-right: 0.8rem;
  background: var(--bv-panel); color: var(--bv-pine); border: 1.5px solid var(--bv-line); border-radius: 6px; padding: 0.5rem 1rem; }
.bv-report-form .bv-btn { margin-top: 1.4rem; }

/* Form notices */
.bv-notice { border-radius: 8px; padding: 1rem 1.2rem; margin: 0 0 1.5rem; font-size: 0.98rem; }
.bv-notice--ok { background: #eef1f6; border: 1px solid #dbe2ea; color: #16202e; }
.bv-notice--err { background: #fdeee9; border: 1px solid #f4c9bc; color: #a1331b; }

/* Desktop-only helper (e.g. the sign-up screenshot in the comment steps) */
.bv-desktop-only { display: block; }
@media (max-width: 720px) { .bv-desktop-only { display: none; } }

/* Take Action blocks + featured (Aug 14 comment) */
.bv-action-block { background: var(--bv-panel); border: 1px solid var(--bv-line); border-left: 3px solid var(--bv-signal); border-radius: 4px; padding: 1.6rem; min-width: 0; scroll-margin-top: 1.5rem; }
.bv-action-block input, .bv-action-block textarea { min-width: 0; }
.bv-action--featured { border: 2px solid var(--bv-signal); border-left: 2px solid var(--bv-signal); box-shadow: 0 12px 30px rgba(209,59,30,0.15); }
.bv-action-flag { margin: -1.6rem -1.6rem 1.3rem; background: var(--bv-signal); color: #fff; padding: 0.65rem 1.6rem;
  font-family: var(--bv-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }

/* Guided steps (comment tool) */
.bv-comment-tool .bv-step { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; align-items: start; }
.bv-comment-tool .bv-step + .bv-step { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--bv-line); }
.bv-step__n { font-family: var(--bv-poster); font-size: 2.6rem; line-height: 0.8; color: #fff; background: var(--bv-signal);
  width: 2.6rem; height: 2.6rem; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.bv-step__body h3 { margin: 0.2rem 0 0.5rem; font-size: 1.35rem; }
.bv-step__body > p { color: var(--bv-ink-soft); }
.bv-ol { list-style: none; counter-reset: bvstep; padding: 0; margin: 0.75rem 0 1.4rem; display: grid; gap: 0.7rem; }
.bv-ol li { counter-increment: bvstep; position: relative; padding-left: 2.4rem; color: var(--bv-ink-soft); }
.bv-ol li::before { content: counter(bvstep); position: absolute; left: 0; top: 0.05rem; width: 1.6rem; height: 1.6rem;
  background: var(--bv-pine); color: #fff; border-radius: 50%; font-weight: 700; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center; }

/* Stay Informed extras: field labels, hints, county grid, radios */
.bv-field-label { font-weight: 600; color: var(--bv-ink); margin: 1.5rem 0 0.4rem; }
.bv-hint { display: block; font-weight: 400; color: var(--bv-ink-soft); font-size: 0.88rem; margin-top: 0.15rem; }
/* Email opt-in, set apart from the fields above it. */
.bv-subscribe { margin: 1.9rem 0 0.5rem; padding: 1.1rem 1.25rem; background: var(--bv-panel); border: 1px solid var(--bv-line); border-radius: 8px; }
.bv-subscribe .wpcf7-list-item { margin: 0; }
.bv-subscribe label { font-weight: 600; color: var(--bv-ink); }
.bv-si-counties .wpcf7-checkbox { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.4rem 1.25rem; margin-top: 0.4rem; }
.bv-si-counties .wpcf7-list-item { margin: 0; display: block; }
.bv-si-counties .wpcf7-list-item label,
.wpcf7-radio .wpcf7-list-item label,
.wpcf7-acceptance label { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 400; margin: 0; }
.wpcf7-radio .wpcf7-list-item { display: inline-flex; margin: 0 1.5rem 0 0; }
.wpcf7-acceptance { margin-top: 1.3rem; }

/* "Who is opposing Valley North" endorsements strip. Editorial list, not pills. */
.bv-endorsements{list-style:none;margin:0;padding:0;display:grid;gap:0 2.5rem;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));}
.bv-endorsements li{display:flex;flex-direction:column;padding:0.8rem 0;border-top:1px solid var(--bv-line);}
.bv-end-name{font-weight:700;color:var(--bv-ink);line-height:1.25;}
.bv-end-detail{color:var(--bv-ink-soft);font-size:0.88rem;margin-top:0.15rem;}

/* Project process timeline (The Threat): where things stand and where the public can act. */
.bv-timeline { list-style: none; margin: 2rem 0 0.6rem; padding: 0; position: relative; }
.bv-timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--bv-line); }
.bv-tl { position: relative; padding: 0 0 1.4rem 2.5rem; display: grid; gap: 0.15rem; }
.bv-tl::before { content: ""; position: absolute; left: 3px; top: 0.4rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--bv-line); }
.bv-tl__when { font-family: var(--bv-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bv-steel); }
.bv-tl__what { color: var(--bv-ink-soft); line-height: 1.55; }
.bv-tl--past { opacity: 0.7; }
.bv-tl--now::before { background: var(--bv-signal); border-color: var(--bv-signal); box-shadow: 0 0 0 4px rgba(229,70,43,0.18); }
.bv-tl--now .bv-tl__when, .bv-tl--act .bv-tl__when { color: var(--bv-signal); }
.bv-tl--now .bv-tl__what, .bv-tl--act .bv-tl__what { color: var(--bv-ink); }
.bv-tl--act::before { background: #fff; border-color: var(--bv-signal); border-width: 3px; }
.bv-tl__source { font-family: var(--bv-mono); font-size: 0.72rem; color: var(--bv-steel); margin: 0.2rem 0 0; }

/* Take Action: "what you can do" summary menu, so people can jump straight to an action. */
.bv-jump { margin: 1.75rem 0 0; background: var(--bv-panel); border: 1px solid var(--bv-line); border-radius: 8px; padding: 1.1rem 1.3rem; }
.bv-jump__label { font-family: var(--bv-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bv-steel); margin: 0 0 0.6rem; }
.bv-jump ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.bv-jump li { margin: 0; }
.bv-jump a { color: var(--bv-pine); text-decoration: none; font-weight: 600; }
.bv-jump a::before { content: "\2192"; color: var(--bv-signal); margin-right: 0.45rem; }
.bv-jump a:hover { text-decoration: underline; }
.bv-action-block { scroll-margin-top: 1.5rem; }

/* "What is at stake" band. Lives inside The Threat's narrow content column, so it
   breaks out to full width the same way that page's figures do. */
.bv-stakes-band { background: var(--bv-pine-deep); color: var(--bv-on-dark); width: 100vw; margin-left: 50%; transform: translateX(-50%); margin-block: 2.5rem; }
.bv-stakes-grid { display: grid; gap: 2.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bv-stakes-card { border-top: 4px solid var(--bv-signal); padding-top: 1.1rem; }
.bv-stakes-img { margin: 0 0 1.1rem; overflow: hidden; border-radius: 6px; }
.bv-stakes-img img { width: 100%; height: 190px; object-fit: cover; display: block; max-width: none; margin: 0; box-shadow: none; border-radius: 0; cursor: default; }
.bv-stakes-icon { margin: 0 0 0.85rem; color: var(--bv-coral); line-height: 0; }

/* Home status strip. Where the project stands right now, directly under the
   hero, because that is the question the coalition is asked most. */
.bv-status { background: var(--bv-panel); border-block: 1px solid var(--bv-line); }
.bv-status__inner { display: grid; gap: 0.5rem 1.6rem; padding-block: clamp(1.1rem, 2.2vw, 1.5rem);
  grid-template-columns: max-content minmax(0, 1fr) auto; align-items: center; }
.bv-status__stage { margin: 0; font-family: var(--bv-mono); font-size: 0.8rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--bv-signal); display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.bv-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bv-signal); flex: none;
  box-shadow: 0 0 0 0 rgba(229,70,43,.55); animation: bv-status-pulse 2.6s ease-out infinite; }
@keyframes bv-status-pulse { 70% { box-shadow: 0 0 0 9px rgba(229,70,43,0); } 100% { box-shadow: 0 0 0 0 rgba(229,70,43,0); } }
@media (prefers-reduced-motion: reduce) { .bv-status__dot { animation: none; } }
.bv-status__text { margin: 0; color: var(--bv-ink); max-width: 68ch; }
.bv-status__cta { margin: 0; }
@media (max-width: 860px) {
  .bv-status__inner { grid-template-columns: 1fr; }
  .bv-status__stage { white-space: normal; }
}

/* The Threat: map link plus the follow-up into our own form. */
.bv-map-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
