/* ============================================================
   PLAN YOUR VOTE SA — Brand style snippet  (v1, 2026)
   Paste this ONCE into your site's custom CSS:
     Appearance ▸ Editor ▸ Styles ▸ (pencil) ▸ Additional CSS
     — or —  Appearance ▸ Customize ▸ Additional CSS
   After it's in, every page whose content sits inside a Group
   block with the class  pyv-scope  gets the full brand design,
   while the page itself holds only plain, editable text/blocks.
   You never need to touch this snippet to change page wording.
   ============================================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@500;600;700&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

.pyv-scope{
  --paper:#ffffff;--surface:#f5f8fc;--surface-2:#eaf1f9;--sky:#e6eff9;
  --line:#dae2ee;--line-strong:#c2cee0;--text:#1d2a3b;--text-muted:#586a7e;--heading:#16294f;
  --ink:#16294f;--gold:#e6a012;--gold-deep:#8a5a0a;--teal:#0e8c7c;--teal-deep:#0a6a5e;--teal-tint:#dcf1ee;
  --coral:#e24e34;--coral-deep:#bb3a23;--plum:#6a4c93;
  --f-office:#16294f;--f-office-t:#e5eaf4;
  --f-process:#0e8c7c;--f-process-t:#dcf1ee;
  --f-matters:#8a5a0a;--f-matters-t:#fbf1d8;
  --f-mixup:#c23a22;--f-mixup-t:#fbe4de;
  --f-running:#6a4c93;--f-running-t:#ece5f5;
  --p-rep:#c0392b;--p-dem:#2c5aa0;--p-lib:#c9971c;--p-grn:#2e8b57;--p-ind:#5c6b7a;
  --hero-a:#16294f;--hero-b:#294b86;
  --shadow:0 1px 2px rgba(16,32,64,.06),0 8px 22px rgba(16,32,64,.08);

  max-width:880px;margin-left:auto;margin-right:auto;
  color:var(--text);
  font-family:"Public Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-size:17px;line-height:1.62;
}

/* Headings + links inside the guide */
.pyv-scope h1,.pyv-scope h2,.pyv-scope h3{
  font-family:"Zilla Slab","Public Sans",Georgia,serif;color:var(--heading);
  line-height:1.14;text-wrap:balance;margin:0;
}
.pyv-scope a{color:var(--teal-deep);font-weight:600;}
.pyv-scope p{margin:0;}

/* Eyebrow / small label helper (add class "pyv-eyebrow" to a paragraph) */
.pyv-scope .pyv-eyebrow{
  font-size:.72rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:var(--gold-deep);
}

/* -------- HERO (Group class: pyv-hero) -------- */
.pyv-scope .pyv-hero{
  background:linear-gradient(135deg,var(--hero-a),var(--hero-b));
  color:#fff;border-radius:16px;padding:2rem 1.6rem 2.2rem;margin-bottom:1.4rem;
}
.pyv-scope .pyv-hero .pyv-eyebrow{color:var(--gold);}
.pyv-scope .pyv-hero h1{color:#fff;font-size:clamp(2rem,5.5vw,3rem);font-weight:700;}
.pyv-scope .pyv-hero p{color:rgba(255,255,255,.92);max-width:60ch;font-size:1.1rem;}

/* -------- PARTY BUTTONS (Buttons block; add class to each button) -------- */
.pyv-scope .pyv-pbtn .wp-block-button__link,
.pyv-scope a.pyv-pbtn{
  background:var(--surface);color:var(--heading);border:1.5px solid var(--line-strong);
  border-radius:999px;padding:7px 15px 7px 30px;font-size:.9rem;font-weight:700;position:relative;
}
.pyv-scope .pyv-pbtn .wp-block-button__link::before{
  content:"";position:absolute;left:12px;top:50%;transform:translateY(-50%);
  width:12px;height:12px;border-radius:50%;background:var(--p-ind);
}
.pyv-scope .pyv-pbtn.rep .wp-block-button__link::before{background:var(--p-rep);}
.pyv-scope .pyv-pbtn.dem .wp-block-button__link::before{background:var(--p-dem);}
.pyv-scope .pyv-pbtn.lib .wp-block-button__link::before{background:var(--p-lib);}
.pyv-scope .pyv-pbtn.grn .wp-block-button__link::before{background:var(--p-grn);}
.pyv-scope .pyv-pbtn.ind .wp-block-button__link::before{background:var(--p-ind);}

/* -------- THE KEY (Group class: pyv-key) -------- */
.pyv-scope .pyv-key{
  background:var(--surface);border:1px solid var(--line);border-radius:16px;
  padding:1.3rem 1.4rem;margin:0 0 2rem;
}
.pyv-scope .pyv-key h2{font-size:1.15rem;font-weight:700;margin-bottom:.2rem;}
.pyv-scope .pyv-key .pyv-sub{font-size:.9rem;color:var(--text-muted);margin-bottom:1rem;max-width:66ch;}

/* Each key item = Group with class pyv-kitem + one facet class */
.pyv-scope .pyv-kitem{
  display:grid;grid-template-columns:34px 1fr;gap:.15rem .75rem;align-items:start;margin-bottom:.7rem;
}
.pyv-scope .pyv-kitem::before{
  content:"";grid-row:1 / 3;width:34px;height:34px;border-radius:9px;
  background-color:var(--f-running);background-repeat:no-repeat;background-position:center;background-size:19px 19px;
}
.pyv-scope .pyv-kitem h3{grid-column:2;font-size:.98rem;font-weight:700;color:var(--heading);}
.pyv-scope .pyv-kitem p{grid-column:2;font-size:.86rem;color:var(--text-muted);}

/* -------- RACE CARD (Group class: pyv-race) -------- */
.pyv-scope .pyv-race{
  background:var(--paper);border:1px solid var(--line);border-radius:18px;
  box-shadow:var(--shadow);overflow:hidden;margin:0 0 1.5rem;padding:0;
}
.pyv-scope .pyv-race-top{
  background:linear-gradient(180deg,var(--sky),var(--paper));
  padding:1.3rem 1.4rem 1.15rem;border-bottom:1px solid var(--line);
}
.pyv-scope .pyv-race-top h2{font-size:1.7rem;font-weight:700;}
.pyv-scope .pyv-chip{
  display:inline-block;font-size:.68rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;
  color:var(--teal-deep);background:var(--teal-tint);border-radius:999px;padding:4px 11px;margin-top:.4rem;
}
.pyv-scope .pyv-openseat{
  margin-top:.7rem;font-size:.9rem;color:var(--text-muted);
  border-left:3px solid var(--gold);padding-left:.7rem;
}

/* -------- FACETS (Group class: pyv-facet + one of pyv-office/process/matters/mixup/running) -------- */
.pyv-scope .pyv-facet{padding:1.15rem 1.4rem;border-bottom:1px solid var(--line);--fc:var(--f-running);--fct:var(--f-running-t);}
.pyv-scope .pyv-facet.pyv-office {--fc:var(--f-office); --fct:var(--f-office-t);}
.pyv-scope .pyv-facet.pyv-process{--fc:var(--f-process);--fct:var(--f-process-t);}
.pyv-scope .pyv-facet.pyv-matters{--fc:var(--f-matters);--fct:var(--f-matters-t);}
.pyv-scope .pyv-facet.pyv-mixup  {--fc:var(--f-mixup);  --fct:var(--f-mixup-t);}
.pyv-scope .pyv-facet.pyv-running{--fc:var(--f-running);--fct:var(--f-running-t);}
.pyv-scope .pyv-facet p{max-width:66ch;}
.pyv-scope .pyv-facet p + p{margin-top:.6rem;}

/* Facet label = a Paragraph with class pyv-flabel; icon chip drawn before it */
.pyv-scope .pyv-flabel{
  display:flex;align-items:center;gap:.6rem;
  font-size:.74rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--fc);margin-bottom:.55rem;
}
.pyv-scope .pyv-flabel::before{
  content:"";flex:0 0 auto;width:30px;height:30px;border-radius:8px;
  background-color:var(--fct);background-repeat:no-repeat;background-position:center;background-size:18px 18px;
}

/* ICONS (drawn from CSS so the page content stays code-free) */
.pyv-scope .pyv-office  .pyv-flabel::before,
.pyv-scope .pyv-kitem.pyv-office::before{
  -webkit-mask:var(--ico-office) center/18px no-repeat;mask:var(--ico-office) center/18px no-repeat;background-color:var(--fct);}
/* Fallback for browsers without mask: show a tinted chip only (icons still communicate via color) */
.pyv-scope{
  --ico-office:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316294f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21h18'/><path d='M5 21V10l7-5 7 5v11'/><path d='M9 21v-6h6v6'/></svg>");
  --ico-process:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e8c7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12a9 9 0 1 1-3-6.7'/><path d='M21 4v5h-5'/></svg>");
  --ico-matters:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l2.7 5.5 6 .9-4.4 4.2 1 6L12 17l-5.3 2.6 1-6L3.3 9.4l6-.9z'/></svg>");
  --ico-mixup:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c23a22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8h13l-3-3'/><path d='M20 16H7l3 3'/></svg>");
  --ico-running:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a4c93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='8' r='3.2'/><path d='M3.5 20a5.5 5.5 0 0 1 11 0'/><path d='M17 5.5a3 3 0 0 1 0 5.8'/><path d='M16.5 14.4A5.5 5.5 0 0 1 20.5 20'/></svg>");
}
.pyv-scope .pyv-office  .pyv-flabel::before,.pyv-scope .pyv-kitem.pyv-office::before {background:var(--f-office-t)  var(--ico-office)  center/18px no-repeat;}
.pyv-scope .pyv-process .pyv-flabel::before,.pyv-scope .pyv-kitem.pyv-process::before{background:var(--f-process-t) var(--ico-process) center/18px no-repeat;}
.pyv-scope .pyv-matters .pyv-flabel::before,.pyv-scope .pyv-kitem.pyv-matters::before{background:var(--f-matters-t) var(--ico-matters) center/18px no-repeat;}
.pyv-scope .pyv-mixup   .pyv-flabel::before,.pyv-scope .pyv-kitem.pyv-mixup::before  {background:var(--f-mixup-t)   var(--ico-mixup)   center/18px no-repeat;}
.pyv-scope .pyv-running  .pyv-flabel::before,.pyv-scope .pyv-kitem.pyv-running::before{background:var(--f-running-t) var(--ico-running) center/18px no-repeat;}

/* Stat chips row (Group class pyv-statline; each stat is a Paragraph class pyv-stat, use <strong> for the number) */
.pyv-scope .pyv-statline{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.85rem;}
.pyv-scope .pyv-stat{
  background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:.5rem .8rem;font-size:.75rem;color:var(--text-muted);
}
.pyv-scope .pyv-stat strong{
  display:block;font-family:"Zilla Slab",serif;color:var(--heading);font-size:1.05rem;font-variant-numeric:tabular-nums;font-weight:700;
}

/* Contrast / example callouts */
.pyv-scope .pyv-vs{
  background:var(--surface);border:1px dashed var(--line-strong);border-radius:10px;
  padding:.75rem .95rem;margin-top:.85rem;font-size:.9rem;
}
.pyv-scope .pyv-vs strong{color:var(--heading);}
.pyv-scope .pyv-example{
  background:var(--f-mixup-t);border-radius:10px;padding:.8rem 1rem;margin-top:.7rem;font-size:.92rem;color:var(--text);
}

/* -------- CANDIDATES --------
   Each candidate = a Group (class pyv-cand-card) holding an always-visible
   name + party chip + role, then a native Details block (class pyv-cand)
   for the deeper info. Everything is editable in the visual editor. */
.pyv-scope .pyv-cand-card{
  border:1px solid var(--line);border-radius:12px;background:var(--paper);
  padding:.8rem .95rem;margin:0 0 .65rem;
}
.pyv-scope .pyv-cand-card h3{font-family:"Zilla Slab",serif;font-weight:700;font-size:1.15rem;color:var(--heading);}
.pyv-scope .pyv-cand-card .pyv-role{font-size:.88rem;color:var(--text-muted);margin:.35rem 0 .2rem;}
.pyv-scope .pyv-cand.wp-block-details{margin:.5rem 0 0;padding:0;border:0;}
.pyv-scope .pyv-cand.wp-block-details > summary{
  cursor:pointer;font-weight:800;font-size:.86rem;color:var(--teal-deep);
  background:var(--surface);border-radius:7px;padding:.5rem .7rem;list-style:none;
}
.pyv-scope .pyv-cand.wp-block-details > summary::-webkit-details-marker{display:none;}
.pyv-scope .pyv-cand[open] > summary{margin-bottom:.6rem;}

/* Party chip (Paragraph class pyv-pchip + party class) */
.pyv-scope .pyv-pchip{
  display:inline-block;font-size:.76rem;font-weight:800;letter-spacing:.03em;color:var(--heading);
  background:var(--surface-2);border-radius:999px;padding:3px 11px 3px 22px;position:relative;
}
.pyv-scope .pyv-pchip::before{content:"";position:absolute;left:8px;top:50%;transform:translateY(-50%);width:10px;height:10px;border-radius:50%;background:var(--p-ind);}
.pyv-scope .pyv-pchip.rep::before{background:var(--p-rep);}
.pyv-scope .pyv-pchip.dem::before{background:var(--p-dem);}
.pyv-scope .pyv-pchip.lib::before{background:var(--p-lib);}
.pyv-scope .pyv-pchip.grn::before{background:var(--p-grn);}
.pyv-scope .pyv-pchip.ind::before{background:var(--p-ind);}

/* Sub-labels inside candidate detail (Paragraph class pyv-moreh) */
.pyv-scope .pyv-moreh{
  font-size:.7rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--text-muted);margin:.9rem 0 .35rem;
}
.pyv-scope .pyv-none{font-size:.88rem;color:var(--text-muted);}
.pyv-scope .pyv-cand ul{margin:.15rem 0 0;padding-left:1.1rem;}
.pyv-scope .pyv-cand ul li{font-size:.9rem;margin-bottom:3px;}

/* Link buttons inside details / resource rows use the native Buttons block, tinted teal */
.pyv-scope .pyv-linkbtn .wp-block-button__link{
  background:var(--teal-tint);color:var(--teal-deep);border:1.5px solid var(--teal);
  border-radius:7px;padding:6px 12px;font-size:.82rem;font-weight:700;
}
.pyv-scope .pyv-outbtn .wp-block-button__link{
  background:var(--surface);color:var(--teal-deep);border:1.5px solid var(--line);
  border-radius:999px;padding:6px 12px;font-size:.83rem;font-weight:700;
}

/* Resource / meta strips */
.pyv-scope .pyv-raceres{padding:1.05rem 1.4rem;}
.pyv-scope .pyv-rl{font-size:.7rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--text-muted);margin-bottom:.5rem;}
.pyv-scope .pyv-meta{padding:0 1.4rem 1.2rem;font-size:.78rem;color:var(--text-muted);}
.pyv-scope .pyv-samplenote{
  background:var(--f-matters-t);border:1px solid var(--line);border-radius:12px;
  padding:1rem 1.2rem;margin:0 0 2rem;font-size:.92rem;color:var(--text);
}

/* Focus states for accessibility */
.pyv-scope a:focus-visible,
.pyv-scope summary:focus-visible,
.pyv-scope .wp-block-button__link:focus-visible{outline:3px solid var(--gold);outline-offset:2px;}

/* Keyboard-friendly, readable spacing on small screens */
@media (max-width:600px){
  .pyv-scope .pyv-hero{padding:1.5rem 1.1rem 1.6rem;}
  .pyv-scope .pyv-facet,.pyv-scope .pyv-race-top,.pyv-scope .pyv-raceres{padding-left:1.05rem;padding-right:1.05rem;}
}