/* ============================================================
   Village Notes — extends the site stylesheet, adds no palette.
   Every color here resolves to a token already defined in
   /styles.css, so light mode and dark mode both follow the rest
   of daricecorey.com with nothing to keep in sync by hand.
   ============================================================ */

.vn-visually-hidden {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ---------- HERO (deep-purple band, matching .research-hero) ---------- */
.vn-hero { background:#2d1f4e; padding:4rem 0 3.5rem; }
.vn-hero .section-heading { margin-bottom:1.25rem; }
/* The h1 is the brand logo. Being an image it picks up none of the heading
   type styles, so the margin below is what .section-heading used to
   contribute. The width is capped in rem as well as vw so the mark stops
   growing on a wide screen instead of turning into a banner; 27rem is a
   little under its native 513px, which keeps it sharp on a 2x display. */
.vn-hero-logo { margin:0 0 1.5rem; line-height:0; }
.vn-hero-logo img { display:block; width:min(27rem, 72vw); height:auto; }
.vn-hero-lede {
  font-size:1rem; color:rgba(255,255,255,.8); max-width:640px;
  line-height:1.75; margin-bottom:2rem;
}
.vn-hero-meta { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.vn-badge {
  display:inline-block; background:rgba(192,132,252,.14);
  border:1px solid rgba(192,132,252,.35); color:#c084fc;
  font-size:.72rem; letter-spacing:.12em; text-transform:uppercase;
  padding:.45rem .9rem; border-radius:999px;
}
.vn-updated { font-size:.75rem; color:rgba(255,255,255,.55); letter-spacing:.04em; }

/* The band stays dark in light mode, so re-assert the bright accent
   inside it the same way /styles.css does for the other hero bands. */
@media (prefers-color-scheme: light) {
  :where(html:not([data-theme="dark"])) .vn-hero { --coral:#c084fc; --coral-dim:#a855f7; }
}
/* Same rules when the visitor picks Light with the switch. */
  :where(html[data-theme="light"]) .vn-hero { --coral:#c084fc; --coral-dim:#a855f7; }


/* ---------- CONTROLS ---------- */
/* The section backgrounds below are written as `section.vn-*` on purpose.
   /styles.css alternates band colour with `section:nth-child(even)`, which
   outranks a bare class selector -- a plain `.vn-submit-section` loses and the
   dark band renders light. Matching that specificity is what makes these hold. */
/* The pinned strip: search + sort only. top reads --header-h from styles.css
   so it cannot drift out of sync with the header. */
section.vn-searchbar-section {
  background:var(--bg); padding:1.1rem 0; border-bottom:1px solid var(--line);
  position:sticky; top:var(--header-h); z-index:40;
}
.vn-searchbar { display:grid; grid-template-columns:minmax(240px,1fr) auto; gap:1rem 1.25rem; align-items:end; }

section.vn-controls-section { background:var(--bg); padding:1.75rem 0 1.5rem; border-bottom:1px solid var(--line); }
.vn-controls {
  display:grid; gap:1rem 1.25rem; align-items:end;
  grid-template-columns:repeat(3,minmax(170px,1fr)) auto;
}
.vn-field { display:flex; flex-direction:column; gap:.5rem; min-width:0; }
.vn-field label {
  font-size:.68rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--coral); font-weight:500;
}
.vn-field input, .vn-field select {
  width:100%; background:var(--bg2); color:var(--cream);
  border:1px solid var(--line); border-radius:2px;
  font-family:var(--sans); font-size:.9rem; font-weight:300;
  padding:.7rem .85rem; transition:border-color .2s;
  appearance:none; -webkit-appearance:none;
}
.vn-field select {
  background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),
                   linear-gradient(135deg,currentColor 50%,transparent 50%);
  background-position:calc(100% - 1.1rem) 1.15rem, calc(100% - .8rem) 1.15rem;
  background-size:6px 6px, 6px 6px; background-repeat:no-repeat;
  padding-right:2.4rem; cursor:pointer;
}
.vn-field input:hover, .vn-field select:hover { border-color:var(--coral); }
.vn-field input::placeholder { color:var(--muted); opacity:.85; }
.vn-reset { padding:.7rem 1.25rem; white-space:nowrap; }
.vn-resultline {
  margin-top:1.5rem; font-size:.8rem; letter-spacing:.06em;
  color:var(--muted); min-height:1.2em;
}

/* ---------- RESULTS ---------- */
section.vn-results-section { background:var(--bg); padding:2.5rem 0 5rem; }
.vn-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:1.5rem; }

.vn-card {
  background:var(--bg2); border-top:2px solid var(--coral);
  padding:1.75rem 1.5rem; display:flex; flex-direction:column;
  min-width:0; transition:background .25s;
}
.vn-card:hover { background:color-mix(in srgb, var(--bg2) 88%, var(--coral)); }
.vn-card-track {
  font-size:.66rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--coral); margin-bottom:.6rem;
}
.vn-card-track .vn-sep { opacity:.45; margin:0 .45rem; }
.vn-card-name {
  font-family:var(--serif); font-size:1.15rem; font-weight:700;
  line-height:1.3; color:var(--cream); margin-bottom:.35rem;
}
.vn-card-town { font-size:.82rem; color:var(--muted); margin-bottom:.5rem; }
.vn-card-type { font-size:.86rem; color:var(--cream); opacity:.85; line-height:1.6; margin-bottom:1rem; }

.vn-stars { color:var(--coral); font-size:.85rem; letter-spacing:.12em; margin-bottom:.85rem; }
.vn-stars .vn-star-off { opacity:.28; }

.vn-facts { display:flex; flex-direction:column; gap:.7rem; margin-bottom:1rem; }
.vn-fact { display:grid; grid-template-columns:6.5rem 1fr; gap:.6rem; align-items:start; min-width:0; }
.vn-fact dt {
  font-size:.64rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--coral); padding-top:.15rem;
}
.vn-fact dd { font-size:.85rem; color:var(--cream); opacity:.9; line-height:1.6; margin:0; min-width:0; }
.vn-fact-flag dd { border-left:2px solid var(--coral); padding-left:.7rem; opacity:1; }

.vn-card-notes {
  font-size:.83rem; color:var(--muted); line-height:1.7;
  border-top:1px solid var(--line); padding-top:1rem; margin-bottom:1rem;
}
.vn-card-notes.vn-clamped {
  display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical; overflow:hidden;
}
.vn-more {
  background:none; border:none; padding:0; cursor:pointer;
  font-family:var(--sans); font-size:.72rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--coral);
  margin:-.5rem 0 1rem; align-self:flex-start;
}
.vn-more:hover { color:var(--coral-dim); text-decoration:underline; }

.vn-card-foot {
  margin-top:auto; padding-top:1rem; border-top:1px solid var(--line);
  display:flex; flex-direction:column; gap:.5rem;
}
.vn-card-links { display:flex; gap:1.25rem; flex-wrap:wrap; }
.vn-card-links a, .vn-card-links span {
  font-size:.76rem; letter-spacing:.06em; color:var(--coral);
  text-decoration:none; overflow-wrap:anywhere;
}
.vn-card-links a:hover { text-decoration:underline; }
.vn-card-links span { color:var(--muted); }
.vn-card-source { font-size:.7rem; color:var(--muted); opacity:.8; line-height:1.5; }

/* ---------- EMPTY STATE ---------- */
.vn-empty {
  text-align:center; padding:4.5rem 2rem;
  background:var(--bg2); border:1px solid var(--line);
}
.vn-empty-icon { font-size:1.5rem; color:var(--coral); margin-bottom:1.25rem; }
.vn-empty-heading { font-family:var(--serif); font-size:1.4rem; font-weight:700; color:var(--cream); margin-bottom:.85rem; }
.vn-empty-body { font-size:.9rem; color:var(--muted); line-height:1.75; max-width:460px; margin:0 auto; }

/* ---------- ABOUT ---------- */
section.vn-about-section { background:var(--bg2); padding:5rem 0; }
.vn-about-grid { display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); margin-top:2rem; }
.vn-about-block { background:var(--bg); padding:2rem 1.75rem; }
.vn-about-block h3 { font-family:var(--serif); font-size:1.05rem; font-weight:700; color:var(--cream); margin-bottom:.75rem; }
.vn-about-block p { font-size:.88rem; color:var(--muted); line-height:1.7; }

/* ---------- FOOTER CREDIT ---------- */
.vn-credit {
  font-family:var(--serif); font-size:.95rem; font-style:italic;
  color:var(--coral); margin-bottom:.6rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px) {
  /* Unpinned below the nav breakpoint: on a short screen the strip costs more
     than it gives, and the header is already a menu button by here. */
  section.vn-searchbar-section { position:static; }
  .vn-searchbar { grid-template-columns:1fr; }
  .vn-controls { grid-template-columns:1fr 1fr; }
  .vn-reset { grid-column:1 / -1; justify-self:start; }
  .vn-about-grid { grid-template-columns:1fr; }
}
@media (max-width:600px) {
  .vn-hero { padding:3rem 0 2.5rem; }
  .vn-controls { grid-template-columns:1fr; }
  .vn-grid { grid-template-columns:1fr; }
  .vn-fact { grid-template-columns:1fr; gap:.2rem; }
}

/* ---------- SUBMIT (deep-purple band, matching the hero) ---------- */
section.vn-submit-section { background:#2d1f4e; padding:5rem 0; }
.vn-submit-lede {
  font-size:1rem; color:rgba(255,255,255,.8); max-width:640px;
  line-height:1.75; margin-bottom:2.5rem;
}
.vn-submit-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1.25rem; margin-bottom:2.5rem; }
.vn-submit-block {
  background:rgba(192,132,252,.08); border:1px solid rgba(192,132,252,.2);
  padding:1.5rem 1.5rem;
}
.vn-submit-block h3 {
  font-family:var(--serif); font-size:1rem; font-weight:700;
  color:#fff; margin-bottom:.6rem;
}
.vn-submit-block p { font-size:.87rem; color:rgba(255,255,255,.75); line-height:1.7; }
.vn-submit-cta { display:flex; gap:1rem; flex-wrap:wrap; }

/* The band stays dark in light mode, so re-assert the bright accent the way
   /styles.css does for the other dark bands. */
@media (prefers-color-scheme: light) {
  :where(html:not([data-theme="dark"])) section.vn-submit-section { --coral:#c084fc; --coral-dim:#a855f7; }
}
/* Same rules when the visitor picks Light with the switch. */
  :where(html[data-theme="light"]) section.vn-submit-section { --coral:#c084fc; --coral-dim:#a855f7; }


@media (max-width:700px) {
  .vn-submit-grid { grid-template-columns:1fr; }
}

/* Sits above the results grid: says where an entry came from before a
   visitor works it out from a thin card. */
.vn-source-note {
  font-size:.84rem; color:var(--muted); line-height:1.7;
  max-width:760px; margin:0 0 2rem; padding-left:1rem;
  border-left:2px solid var(--line);
}

/* ---------- MULTI-SELECT (town) ---------- */
.vn-field-label {
  font-size:.68rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--coral); font-weight:500;
}
.vn-multi { position:relative; min-width:0; }
.vn-multi-toggle {
  width:100%; text-align:left; background:var(--bg2); color:var(--cream);
  border:1px solid var(--line); border-radius:2px;
  font-family:var(--sans); font-size:.9rem; font-weight:300;
  padding:.7rem 2.4rem .7rem .85rem; cursor:pointer; transition:border-color .2s;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.vn-multi-toggle::after {
  content:''; position:absolute; right:.9rem; top:50%; width:6px; height:6px;
  border-right:1px solid currentColor; border-bottom:1px solid currentColor;
  transform:translateY(-70%) rotate(45deg); pointer-events:none;
}
.vn-multi-toggle:hover { border-color:var(--coral); }
.vn-multi-toggle.has-selection { border-color:var(--coral); color:var(--coral); }

.vn-multi-panel {
  position:absolute; z-index:60; top:calc(100% + .35rem); left:0;
  width:min(19rem,80vw); background:var(--bg2);
  border:1px solid var(--coral); border-radius:2px;
  box-shadow:0 12px 32px rgba(0,0,0,.28);
}
.vn-multi-head { display:flex; gap:.5rem; padding:.6rem; border-bottom:1px solid var(--line); }
.vn-multi-head input {
  flex:1; min-width:0; background:var(--bg); color:var(--cream);
  border:1px solid var(--line); border-radius:2px;
  font-family:var(--sans); font-size:.85rem; font-weight:300; padding:.45rem .6rem;
}
.vn-multi-clear {
  background:none; border:none; cursor:pointer; padding:0 .3rem;
  font-family:var(--sans); font-size:.7rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--coral);
}
.vn-multi-clear:hover { text-decoration:underline; }

.vn-multi-list { max-height:16rem; overflow-y:auto; padding:.35rem; }
.vn-multi-opt {
  display:flex; align-items:center; gap:.6rem;
  padding:.45rem .6rem; cursor:pointer; font-size:.87rem; color:var(--cream);
  border-radius:2px;
}
.vn-multi-opt:hover { background:color-mix(in srgb, var(--bg2) 85%, var(--coral)); }
.vn-multi-opt input { accent-color:var(--coral); width:1rem; height:1rem; flex-shrink:0; }
.vn-multi-opt[hidden] { display:none; }

@media (max-width:600px) {
  .vn-multi-panel { width:min(19rem,92vw); }
}

/* ---------- GROUPED MULTI-SELECT ---------- */
.vn-multi-panel-wide { width:min(24rem,88vw); }
.vn-multi-group { border-bottom:1px solid var(--line); padding-bottom:.25rem; margin-bottom:.25rem; }
.vn-multi-group:last-child { border-bottom:none; }
.vn-multi-group[hidden] { display:none; }
.vn-multi-opt em { margin-left:auto; font-style:normal; font-size:.74rem; color:var(--muted); }
.vn-multi-grouphead { font-weight:500; color:var(--cream); }
.vn-multi-grouphead span { font-size:.88rem; }
.vn-multi-child { padding-left:1.9rem; }
.vn-multi-child span { font-size:.83rem; color:var(--muted); }

/* ---------- QUICK TOGGLES ---------- */
.vn-toggles { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin-top:1.5rem; }
.vn-toggles-label {
  font-size:.68rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--coral); margin-right:.25rem;
}
.vn-toggle { display:inline-flex; align-items:center; gap:.45rem; cursor:pointer; }
.vn-toggle input { position:absolute; opacity:0; width:0; height:0; }
.vn-toggle span {
  display:inline-block; border:1px solid var(--line); border-radius:999px;
  padding:.4rem .85rem; font-size:.78rem; color:var(--muted);
  background:var(--bg2); transition:all .15s; white-space:nowrap;
}
.vn-toggle:hover span { border-color:var(--coral); color:var(--cream); }
.vn-toggle input:checked + span { background:var(--coral); border-color:var(--coral); color:#241038; }
.vn-toggle input:focus-visible + span { outline:3px solid var(--coral); outline-offset:2px; }
@media (prefers-color-scheme: light) { :where(html:not([data-theme="dark"])) .vn-toggle input:checked + span { color:#fff; } }
/* Same rules when the visitor picks Light with the switch. */
 :where(html[data-theme="light"]) .vn-toggle input:checked + span { color:#fff; } 


/* ---------- CARD CHIPS ---------- */
.vn-chips { display:flex; flex-wrap:wrap; gap:.35rem; margin-bottom:.85rem; }
.vn-badge-chip {
  font-size:.68rem; letter-spacing:.04em; padding:.22rem .55rem;
  border:1px solid var(--line); border-radius:999px; color:var(--muted);
}
.vn-badge-chip.is-open { border-color:var(--coral); color:var(--coral); }

/* ---------- UPCOMING EVENT ---------- */
/* The only row on a card carrying a deadline, so it gets the only accent
   border on the card face. No new colour: --coral is the same accent the
   open-registration chip above and the waitlist row already use, so this
   reads as emphasis rather than as a fifth thing to learn. The card hides
   this row entirely once the date passes, so it is never stale. */
.vn-event {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:.5rem;
  margin:0 0 .85rem; padding:.5rem .7rem;
  border:1px solid var(--coral); border-left-width:3px; border-radius:4px;
  font-size:.82rem; line-height:1.55;
}
.vn-event-when {
  color:var(--coral); font-weight:600; font-size:.7rem;
  letter-spacing:.08em; text-transform:uppercase; white-space:nowrap;
}
/* ---------- FEATURED RESOURCE ---------- */
/* One hand-written block above the listings, for a resource that answers a
   question no card can: how a family affords to stop working while they care
   for someone. It borrows the provider's own blue rather than the site's
   purple, so it reads as official and distinct without becoming a second
   design language -- everything else here is the page's existing card.

   --ctpl-blue is a lightened version of Connecticut Paid Leave's #0045ab.
   Their blue on this page's background measures 1.96:1, which is unreadable;
   this measures 6.22:1 at the same hue. The logo keeps the original. */
.vn-featured {
  --ctpl-blue:#5c9dff;
  --ctpl-edge:rgba(92,157,255,.32);
  --ctpl-on-blue:#0a1430;
  background:var(--bg2);
  border:1px solid var(--ctpl-edge);
  border-left:3px solid var(--ctpl-blue);
  border-radius:10px;
  padding:1.6rem 1.7rem;
  margin-bottom:2rem;
}
.vn-featured[hidden] { display:none; }
.vn-featured-eyebrow {
  font-size:.66rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ctpl-blue); margin:0 0 .85rem;
}
.vn-featured-head { display:flex; gap:1.3rem; align-items:flex-start; flex-wrap:wrap; }
/* The wordmark is navy-on-white artwork, so it needs its own light ground
   rather than sitting straight on the dark card. */
.vn-featured-mark {
  background:#fff; border-radius:8px; padding:.55rem .65rem;
  width:104px; height:auto; flex:0 0 auto;
}
.vn-featured-name {
  font-family:var(--serif); font-weight:400; font-size:1.45rem;
  margin:0 0 .4rem; color:var(--cream);
}
.vn-featured-lede { font-size:.92rem; color:var(--cream); margin:0; max-width:60ch; }
.vn-featured-cols {
  display:grid; grid-template-columns:1.15fr 1fr; gap:1.6rem; margin-top:1.4rem;
}
.vn-featured h3 {
  font-size:.68rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--ctpl-blue); margin:0 0 .6rem; font-weight:400;
}
.vn-featured-h3-gap { margin-top:1.1rem !important; }
.vn-featured-list { margin:0; padding:0; list-style:none; font-size:.85rem; color:var(--cream); }
.vn-featured-list li { padding:.3rem 0 .3rem 1.05rem; position:relative; }
.vn-featured-list li::before {
  content:""; position:absolute; left:0; top:.95em; width:.4rem; height:.4rem;
  border-radius:50%; background:var(--ctpl-blue);
}
.vn-featured-fact { font-size:.85rem; color:var(--cream); margin:0 0 .7rem; }
.vn-featured-fact b { color:var(--ctpl-blue); font-weight:500; }
.vn-featured-caveat {
  margin:1.3rem 0 0; padding-top:1rem; border-top:1px solid var(--line);
  font-size:.8rem; color:var(--muted);
}
.vn-featured-caveat b { color:var(--cream); font-weight:500; }
.vn-featured-actions {
  display:flex; gap:.7rem; flex-wrap:wrap; align-items:center; margin-top:1.2rem;
}
.vn-featured-btn {
  display:inline-block; font-size:.8rem; letter-spacing:.03em; text-decoration:none;
  padding:.6rem 1.1rem; border-radius:4px;
  background:var(--ctpl-blue); color:var(--ctpl-on-blue); font-weight:500;
}
.vn-featured-btn-ghost {
  background:none; border:1px solid var(--ctpl-edge); color:var(--ctpl-blue); font-weight:400;
}
.vn-featured-meta { font-size:.76rem; color:var(--muted); }
/* In light mode the block can use Connecticut Paid Leave's own #0045ab, which
   is what the brand actually specifies. The lift above exists only because
   that blue is unreadable on the dark ground -- given a light one there is no
   reason not to use the real thing. Measured both ways in a browser: 6.22:1
   on the dark card, 7.43:1 on the light one. */
@media (prefers-color-scheme: light) {
  :where(html:not([data-theme="dark"])) .vn-featured {
    --ctpl-blue:#0045ab;
    --ctpl-edge:rgba(0,69,171,.28);
    --ctpl-on-blue:#ffffff;
  }
}
/* Same rules when the visitor picks Light with the switch. */
  :where(html[data-theme="light"]) .vn-featured {
    --ctpl-blue:#0045ab;
    --ctpl-edge:rgba(0,69,171,.28);
    --ctpl-on-blue:#ffffff;
  }


@media (max-width:760px) {
  .vn-featured { padding:1.2rem 1.1rem; }
  .vn-featured-cols { grid-template-columns:1fr; gap:1.1rem; }
}

/* ---------- DISABILITY & ACCESSIBILITY DOORWAY ---------- */
/* The filter is an ordinary quick filter; this is the sign above it. It exists
   because the toggle row is seven checkboxes long and someone caring for a
   disabled family member should not have to read all seven to learn the
   directory has anything for them. It hides itself when there is nothing to
   show and once the filter is already on. No new colour: --coral is the accent
   the open-registration chip and the event strip already carry. */
.vn-doorway {
  display:flex; flex-wrap:wrap; align-items:center; gap:.75rem 1rem;
  margin-top:1rem; padding:.85rem 1rem;
  border:1px solid var(--line); border-left:3px solid var(--coral);
  border-radius:6px;
}
.vn-doorway[hidden] { display:none; }
.vn-doorway-text {
  margin:0; flex:1 1 22rem; font-size:.85rem; line-height:1.6; color:var(--muted);
}
.vn-doorway-text strong { display:block; color:var(--coral); font-size:.9rem; }
.vn-doorway-btn { flex:0 0 auto; }

.vn-toggle[hidden] { display:none; }
.vn-toggles[hidden] { display:none; }

/* ---------- SHOW MORE ---------- */
.vn-more-wrap { display:flex; justify-content:center; margin-top:2.5rem; }
.vn-more-wrap button[hidden] { display:none; }

/* ---------- EMPTY-STATE CONTRIBUTION ---------- */
.vn-empty-cta { margin-top:1.75rem; padding-top:1.5rem; border-top:1px solid var(--line); }
.vn-empty-cta[hidden] { display:none; }
.vn-empty-ask {
  font-size:.9rem; color:var(--cream); line-height:1.75;
  max-width:460px; margin:0 auto 1.25rem;
}

/* ---------- FOOD & BASIC NEEDS ---------- */

/* Shown when a food search finds nothing. Deliberately not styled as an error:
   it is a working answer, so it reads like the rest of the page. */
.vn-food-fallback {
  max-width:34rem; margin:0 auto 1.75rem; padding:1rem 1.1rem;
  border:1px solid var(--line); border-left:3px solid var(--coral);
  border-radius:6px; text-align:left;
}
.vn-food-fallback[hidden] { display:none; }
.vn-food-fallback-body {
  margin:0 0 .9rem; font-size:.9rem; line-height:1.65; color:var(--cream);
}
.vn-food-fallback-links { display:flex; flex-wrap:wrap; gap:.6rem; }

/* The reminder on a food card. Quiet, because it sits on every one of them --
   loud would be noise by the third card -- but not so quiet it reads as fine
   print, because it is the most actionable sentence on the card. */
.vn-card-caveat {
  margin:.85rem 0 0; padding:.6rem .75rem;
  background:rgba(192,132,252,.08); border-left:2px solid var(--coral);
  border-radius:0 4px 4px 0;
  font-size:.78rem; line-height:1.55; color:var(--muted);
}

/* ---------- AFFORDABLE FAMILY SHOPPING & COUNTY ---------- */

/* County row. Reuses .vn-toggle for each box, so it inherits the quick
   filters' focus ring and hit area; this only lays them out. */
.vn-counties { align-items:flex-start; }
.vn-county-list { display:flex; flex-wrap:wrap; gap:.4rem .5rem; }

/* ---------- SELECTION IS A CHECKMARK, NOT JUST A COLOUR ---------- */

/* Every filter on this page is a checkbox, and until now "chosen" was carried
   by fill colour alone -- on the pills by a background swap, in the panels by
   whatever the browser draws for accent-color. Colour alone is a weak signal
   at a glance and the thing a visitor misreads right before they click a
   second time and undo their own filter. So selection now draws an actual
   tick, and the row behind it holds a background that outlasts the pointer.

   /connecticut-list shares this stylesheet and draws the same pills and the
   same panel rows, so it gets the same treatment -- the two pages are the same
   control to a visitor and should not disagree about what "chosen" looks
   like. */

:root { --vn-oncoral:#241038; }

/* --- panel rows: category and town --- */

/* The native box is replaced rather than tinted, because accent-color leaves
   the tick's weight and contrast up to the platform, and these rows sit on a
   dark panel where a thin system tick disappears. padding:0 is load-bearing
   once appearance is off: .vn-field input further up sets .7rem/.85rem for the
   real text inputs in this panel, which the native checkbox widget ignored. */
.vn-multi-opt input {
  appearance:none; -webkit-appearance:none; margin:0; padding:0;
  box-sizing:border-box; width:1.1rem; height:1.1rem; min-width:1.1rem;
  flex-shrink:0; position:relative; cursor:pointer;
  border:2px solid var(--muted); border-radius:3px; background:transparent;
  transition:background .12s, border-color .12s;
}
.vn-multi-opt:hover input { border-color:var(--coral); }
.vn-multi-opt input:checked,
.vn-multi-opt input:indeterminate { background:var(--coral); border-color:var(--coral); }
.vn-multi-opt input:checked::after {
  content:""; position:absolute; left:.29rem; top:.04rem;
  width:.25rem; height:.55rem;
  border:solid var(--vn-oncoral); border-width:0 2.5px 2.5px 0;
  transform:rotate(45deg);
}
/* A group with some but not all of its types chosen. A dash, so "partly" never
   reads as "all of it". */
.vn-multi-opt input:indeterminate::after {
  content:""; position:absolute; left:.15rem; top:.38rem;
  width:.5rem; height:0; border-top:2.5px solid var(--vn-oncoral);
}
.vn-multi-opt input:focus-visible { outline:3px solid var(--coral); outline-offset:2px; }

/* The chosen row keeps a background after the pointer leaves, so what is on is
   readable from the shape of the list rather than only from the boxes. */
.vn-multi-opt:has(input:checked) {
  background:color-mix(in srgb, var(--bg2) 58%, var(--coral));
}
.vn-multi-opt:has(input:checked) span { color:var(--cream); font-weight:500; }
/* The count has to come up with the row: --muted was sized for the panel
   background and drops under 4.5:1 against the lighter selected band. */
.vn-multi-opt:has(input:checked) em { color:var(--cream); }

/* --- pills: quick filters and county --- */

/* inline-flex so the tick centres against the label instead of sitting on the
   text baseline, which a rotated box does badly. */
.vn-toggle span { display:inline-flex; align-items:center; }
.vn-toggle input:checked + span::before {
  content:""; flex:none; width:.26rem; height:.55rem; margin:-2px .45rem 0 0;
  border:solid currentColor; border-width:0 2.5px 2.5px 0;
  transform:rotate(45deg);
}

/* :root, not :where(html...), on purpose: :where() carries no specificity, so
   against the :root default above it would lose and the tick would stay dark
   on a dark fill in light mode. Measured 2.49:1 before this was fixed. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --vn-oncoral:#fff; }
}
/* Same when the visitor picks Light with the switch. */
:root[data-theme="light"] { --vn-oncoral:#fff; }

/* ---------- TAGS ---------- */

/* Search vocabulary that happens to be visible. Quieter than the status chips
   above them -- a tag is context, not a claim about availability -- and the
   whole list is absent rather than empty when a record carries none. */
.vn-tags {
  list-style:none; margin:.85rem 0 0; padding:0;
  display:flex; flex-wrap:wrap; gap:.3rem;
}
.vn-tags li {
  /* Matched to .vn-badge-chip rather than set smaller: a tag should not be the
     least readable thing on the card, and 10.6px was already at the floor. */
  font-size:.68rem; letter-spacing:.03em; padding:.2rem .5rem;
  border:1px solid var(--line); border-radius:3px;
  color:var(--muted); background:transparent;
}

/* Village Notes updates signup (hero link and the section after "Add to the
   Directory"). Section selector is element-qualified for the same reason as
   the others above: styles.css sets padding on bare `section`. */
.vn-hero-signup { font-size:.95rem; color:rgba(255,255,255,.8); max-width:640px; line-height:1.6; margin:-1rem 0 1.5rem; }
.vn-hero-signup a { color:#c084fc; text-underline-offset:3px; }
section.vn-updates-section { background:var(--bg); padding:5rem 0; }
.vn-updates-form { margin:0; max-width:560px; }
.vn-updates-status { margin-top:1rem; line-height:1.6; }
.vn-updates-fine { font-size:.9rem; line-height:1.6; max-width:560px; margin-top:.5rem; }
@media (max-width:640px) { .vn-updates-form .form-row { grid-template-columns:1fr; gap:0; } }

/* Accent pops (brand kit README v1.1): gold, teal and rose as small
   highlights on top of the purple, never as text on a light background and
   never carrying meaning on their own. Rotated across each set of cards. */
.vn-submit-block { border-top:4px solid var(--pop-gold); }
.vn-submit-block:nth-child(4n+2) { border-top-color:var(--pop-teal); }
.vn-submit-block:nth-child(4n+3) { border-top-color:var(--pop-rose); }
.vn-about-block { border-top:4px solid var(--pop-teal); }
.vn-about-block:nth-child(4n+2) { border-top-color:var(--pop-rose); }
.vn-about-block:nth-child(4n+3) { border-top-color:var(--pop-gold); }
.vn-hero-signup a { box-shadow:inset 0 -.35em 0 rgba(253,185,38,.35); text-decoration:none; }
.vn-hero-signup a:hover, .vn-hero-signup a:focus-visible { box-shadow:inset 0 -1.2em 0 rgba(253,185,38,.35); }
.vn-updates-form { padding-top:1.75rem; border-top:4px solid var(--pop-rose); }
.vn-updates-section .pop-pills { margin:0 0 1.75rem; }

/* Accent pops, top to bottom (2026-10-25). Decoration only: the purple
   accent (--coral) still carries every state and meaning on the page --
   checked filters, open registration, upcoming dates -- so nobody has to
   learn what a gold, teal or rose mark means. */

/* Hero: a three-colour stripe along the bottom edge of the band, and a gold
   dot on the listings badge. */
.vn-hero { position:relative; }
.vn-hero::after {
  content:""; position:absolute; left:0; right:0; bottom:0; height:6px;
  background:linear-gradient(90deg, var(--pop-gold) 0 33.34%, var(--pop-teal) 33.34% 66.67%, var(--pop-rose) 66.67% 100%);
}
.vn-badge::before {
  content:""; display:inline-block; width:.5rem; height:.5rem; border-radius:50%;
  background:var(--pop-gold); margin-right:.5rem; vertical-align:middle;
}

/* Filters: a small marker before each row label. */
.vn-toggles-label::before {
  content:""; display:inline-block; width:.55rem; height:.55rem; border-radius:50%;
  background:var(--pop-teal); margin-right:.45rem; vertical-align:middle;
}
.vn-counties .vn-toggles-label::before { background:var(--pop-rose); }

/* Results: card top edges rotate through the three pops. */
.vn-card { border-top:4px solid var(--pop-gold); }
.vn-card:nth-child(3n+2) { border-top-color:var(--pop-teal); }
.vn-card:nth-child(3n) { border-top-color:var(--pop-rose); }
.vn-source-note { border-left:4px solid var(--pop-teal); padding-left:1rem; }
.vn-empty-icon { color:var(--pop-gold); }

/* Section labels further down get a short coloured bar. */
.vn-submit-section .section-label::before,
.vn-updates-section .section-label::before,
.vn-about-section .section-label::before {
  content:""; display:inline-block; width:1.5rem; height:4px; border-radius:2px;
  margin-right:.6rem; vertical-align:middle; background:var(--pop-gold);
}
.vn-updates-section .section-label::before { background:var(--pop-rose); }
.vn-about-section .section-label::before { background:var(--pop-teal); }

/* Footer: the same stripe as the hero closes the page. */
footer[role="contentinfo"] { border-top:6px solid transparent;
  border-image:linear-gradient(90deg, var(--pop-gold) 0 33.34%, var(--pop-teal) 33.34% 66.67%, var(--pop-rose) 66.67% 100%) 1; }

/* Buttons and categories in the accent pops (2026-10-25). Bright fills
   always take Deep Plum text (gold 10.6:1, teal 10.2:1, rose 5.8:1).
   `main` in each selector outranks the theme rules in styles.css that turn
   primary-button text white in the light theme. */
main .btn-primary, main .btn-primary:hover { color:var(--pop-ink); }
main .btn-primary { background:var(--pop-gold); font-weight:600; }
main .btn-primary:hover, main .btn-primary:focus-visible { background:var(--pop-teal); }
main .btn-primary:focus-visible, main .btn-ghost:focus-visible { outline:3px solid var(--coral); outline-offset:3px; }
main .btn-ghost { border:2px solid var(--pop-teal); }
main .btn-ghost:hover { border-color:var(--pop-gold); }
main .vn-reset { border-color:var(--pop-rose); }
main .vn-doorway-btn { border-color:var(--pop-gold); }
main .btn-ghost.vn-btn-on-dark { color:#fff; border-color:var(--pop-rose); }
main .btn-ghost.vn-btn-on-dark:hover { color:#fff; border-color:var(--pop-gold); }

/* Card categories: the track becomes a pill; the sub-category stays text. */
.vn-track-pill {
  display:inline-block; padding:.22rem .6rem; border-radius:999px;
  font-weight:600; letter-spacing:.1em; color:var(--pop-ink);
  background:var(--pop-teal);
}
.vn-track-pill[data-track="teens"] { background:var(--pop-gold); }
.vn-track-pill[data-track="elder"] { background:var(--pop-rose); }
.vn-track-pill[data-track="pet"] { background:#c084fc; }
.vn-track-pill[data-track="food"] { background:var(--pop-rose); }
.vn-track-pill[data-track="health"] { background:var(--pop-teal); }

/* Filter pills: filled in rotating gold, teal and rose, like the pills on
   the Start Your Business page. A picked pill turns Deep Plum (white in the
   dark theme) and gains the tick, so the state never rests on colour alone. */
main .vn-toggle span { background:var(--pop-gold); border:2px solid var(--pop-gold); color:var(--pop-ink); font-weight:500; }
main .vn-toggle:nth-of-type(3n+2) span { background:var(--pop-teal); border-color:var(--pop-teal); }
main .vn-toggle:nth-of-type(3n) span { background:var(--pop-rose); border-color:var(--pop-rose); }
main .vn-toggle:hover span { color:var(--pop-ink); filter:brightness(1.06); }
main .vn-toggles .vn-toggle input:checked + span { background:var(--pop-ink); border-color:var(--pop-ink); color:#fff; font-weight:700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main .vn-toggles .vn-toggle input:checked + span { background:#fff; border-color:#fff; color:var(--pop-ink); } }
:root[data-theme="dark"] main .vn-toggles .vn-toggle input:checked + span { background:#fff; border-color:#fff; color:var(--pop-ink); }

/* Card chips and tags rotate through the pops too. "Registration open"
   keeps its purple outline because it carries meaning. */
.vn-badge-chip:not(.is-open), .vn-tags li { color:var(--pop-ink); border-color:transparent; background:var(--pop-gold); border-radius:999px; font-weight:500; }
.vn-badge-chip:not(.is-open):nth-child(3n+2), .vn-tags li:nth-child(3n+2) { background:var(--pop-teal); }
.vn-badge-chip:not(.is-open):nth-child(3n), .vn-tags li:nth-child(3n) { background:var(--pop-rose); }


/* ---------- SCHOLARSHIPS FOR CONNECTICUT STUDENTS (added 2026-11-05) ----------
   Fed by village-notes/scholarships-feature.js from the Scholarships &
   Fellowships snapshot. Tokens only, so it follows light and dark mode. */
.vn-scholarships {
  margin:2.5rem 0 0; padding:1.5rem; background:var(--bg2);
  border:1px solid var(--line); border-top:4px solid var(--pop-gold, #fdb926); border-radius:10px;
}
.vn-scholarships[hidden] { display:none; }
.vn-scholarships-heading { font-family:var(--serif); font-size:1.4rem; color:var(--cream); margin:.25rem 0 .5rem; }
.vn-scholarships-intro { color:var(--muted); font-size:.92rem; line-height:1.6; margin-bottom:1rem; }
.vn-scholarships-list { list-style:none; margin:0 0 1.25rem; padding:0; display:grid; gap:.75rem; }
.vn-sch-item a { color:var(--coral); font-weight:600; }
.vn-sch-meta { display:block; font-size:.82rem; color:var(--muted); margin-top:.15rem; }
