/* ============================================================
   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; }


/* ---------- LANGUAGE / IDIOMA ---------- */
.vn-lang { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.6rem; margin:-1.5rem 0 .75rem; }
.vn-lang label { font-size:.78rem; letter-spacing:.06em; color:rgba(255,255,255,.85); }
.vn-lang select {
  font:inherit; font-size:.9rem; color:#fff; background:rgba(255,255,255,.08);
  border:1px solid rgba(192,132,252,.55); border-radius:8px; padding:.45rem .75rem; min-height:44px;
}
.vn-lang select option { color:#1a1a1a; background:#fff; }
.vn-lang select:focus-visible { outline:2px solid #c084fc; outline-offset:2px; }
.vn-lang-note { flex-basis:100%; text-align:right; font-size:.72rem; color:rgba(255,255,255,.65); margin:0; }
@media (max-width:640px) {
  .vn-lang { justify-content:flex-start; margin-top:-.5rem; }
  .vn-lang-note { text-align:left; }
}
/* Google's widget adds a toolbar frame and pushes the page down; the
   control above already does that job. */
.goog-te-banner-frame, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame { display:none !important; }
body { top:0 !important; }
.goog-text-highlight { background:none !important; box-shadow:none !important; }

/* ---------- 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); 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; }

/* ---------- FILTER NOTE, PRINT AND 2-1-1 ROW ---------- */
.vn-filter-note {
  font-size:.84rem; color:var(--muted); line-height:1.6;
  max-width:760px; margin:.75rem 0 0;
}
.vn-print-row {
  display:flex; flex-wrap:wrap; align-items:center; gap:.75rem 1.5rem;
  margin-top:1rem;
}
.vn-print-btn { padding:.6rem 1.1rem; }
.vn-talk { font-size:.9rem; margin:0; }
.vn-talk a { color:var(--coral); font-weight:600; }
.vn-print-title { display:none; }

/* Paper: the matching listings and nothing else. The print button renders
   every match first, so this is the whole list, not the first page. */
@media print {
  nav, footer, .vn-hero, .vn-searchbar-section, .vn-controls, .vn-toggles,
  .vn-doorway, .vn-featured, .vn-source-note, .vn-more-wrap, .vn-print-row,
  .vn-filter-note, .vn-scholarships, .vn-submit-section, .vn-more,
  main > section:not(.vn-results-section):not(.vn-controls-section),
  #vn-gt, .skip-link { display:none !important; }
  body, section.vn-results-section, .vn-controls-section, .vn-card {
    background:#fff !important; color:#000 !important;
  }
  section.vn-results-section, .vn-controls-section { padding:0 !important; }
  .vn-print-title { display:block; font-size:10pt; margin:0 0 .5rem; color:#000; }
  .vn-resultline { color:#000; margin:0; }
  .vn-grid { display:block; }
  .vn-card {
    display:block !important; border:1px solid #999 !important; padding:.6rem .8rem; margin:0 0 .5rem;
    break-inside:avoid; page-break-inside:avoid;
  }
  .vn-card * { color:#000 !important; }
  /* Compact: what someone needs to make the call, about four to a page. The
     research notes, tags and "submitted by" line stay on the website. */
  .vn-card { font-size:8.5pt !important; line-height:1.3 !important; }
  .vn-card-notes, .vn-tags, .vn-card-source, .vn-card-caveat,
  .vn-stars { display:none !important; }
  .vn-card-name { font-size:11pt !important; margin:0 0 .1rem !important; }
  .vn-card-town, .vn-card-type, .vn-chips, .vn-event { margin:0 0 .15rem !important; font-size:8.5pt !important; }
  .vn-badge-chip { border:1px solid #000 !important; background:none !important; padding:0 .3em !important; font-size:7.5pt !important; }
  .vn-facts { display:block !important; margin:.2rem 0 !important; }
  .vn-fact { display:flex !important; gap:.5rem; margin:0 !important; padding:0 !important; border:0 !important; }
  .vn-fact dt { flex:0 0 6.5rem; }
  .vn-card-track, .vn-track-pill { margin:0 !important; padding:0 !important; background:none !important; font-size:7.5pt !important; }
  .vn-facts dt, .vn-facts dd { margin:0 !important; padding:0 !important; border:0 !important; font-size:8.5pt !important; }
  .vn-card-foot { padding-top:.2rem !important; margin:0 !important; gap:0 !important; }
  .vn-card-links a, .vn-card-links span { font-size:8.5pt !important; }
  .vn-card-notes.vn-clamped { display:block !important; max-height:none !important; -webkit-line-clamp:unset !important; overflow:visible !important; }
  .vn-card-links a[href^="http"]::after { content:" (" attr(href) ")"; font-size:8pt; }
}

/* Links inside running text are underlined, so they never rely on colour
   alone to stand out (WCAG 1.4.1). */
.vn-card-links span a, .vn-hero-signup a, .vn-talk a, .vn-filter-note a {
  text-decoration:underline; text-underline-offset:2px;
}

/* ---------- QUICK-FILTER GROUPS ---------- */
.vn-toggle-groups { margin-top:1.5rem; display:flex; flex-direction:column; gap:1rem; }
.vn-toggle-group > summary {
  display:inline-flex; align-items:center; gap:.6rem; cursor:pointer;
  list-style:none; padding:.25rem 0;
}
.vn-toggle-group > summary::-webkit-details-marker { display:none; }
.vn-toggle-group > summary::after {
  content:""; width:.42rem; height:.42rem; border-right:2px solid var(--coral);
  border-bottom:2px solid var(--coral); transform:rotate(-45deg); transition:transform .15s;
}
.vn-toggle-group[open] > summary::after { transform:rotate(45deg); }
.vn-toggle-group > summary:focus-visible { outline:3px solid var(--coral); outline-offset:3px; }
.vn-toggle-group .vn-toggles { margin-top:.5rem; }
.vn-group-on {
  font-size:.72rem; font-weight:600; color:var(--coral);
  border:1.5px solid var(--coral); border-radius:999px; padding:0 .5rem;
}
.vn-group-on:empty { display:none; }

/* ---------- INTRO (moved to the top, kept small) ---------- */
section.vn-intro-section { background:var(--bg2); padding:1.75rem 0; border-bottom:1px solid var(--line); }
.vn-intro { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); gap:1.5rem 2.5rem; align-items:start; }
.vn-household { display:flex; gap:1rem; align-items:flex-start; }
.vn-household-img { flex:0 0 120px; display:block; }
.vn-household-img img { display:block; width:100%; height:auto; border-radius:10px; }
.vn-intro-heading {
  font-family:var(--serif); font-size:1.15rem; font-weight:700; line-height:1.3;
  color:var(--cream); margin:0 0 .4rem;
}
.vn-household-text p { font-size:.88rem; color:var(--muted); line-height:1.6; margin:0 0 .4rem; }
.vn-household-text a { color:var(--coral); text-decoration:underline; text-underline-offset:2px; }
.vn-why > summary { cursor:pointer; list-style:none; display:flex; align-items:center; gap:.6rem; }
.vn-why > summary::-webkit-details-marker { display:none; }
.vn-why > summary .vn-intro-heading { margin:0; }
.vn-why > summary::after {
  content:""; flex:none; width:.45rem; height:.45rem; border-right:2px solid var(--coral);
  border-bottom:2px solid var(--coral); transform:rotate(-45deg); transition:transform .15s;
}
.vn-why[open] > summary::after { transform:rotate(45deg); }
.vn-why > summary:focus-visible { outline:3px solid var(--coral); outline-offset:3px; }
.vn-why-grid { display:grid; grid-template-columns:1fr 1fr; gap:.9rem 1.5rem; margin-top:.75rem; }
.vn-why-item h3 { font-size:.88rem; font-weight:700; color:var(--cream); margin:0 0 .2rem; }
.vn-why-item p { font-size:.8rem; color:var(--muted); line-height:1.55; margin:0; }

/* ---------- HOW TO FIND HELP ---------- */
section.vn-start-section { background:var(--bg); padding:1.5rem 0 .5rem; }
.vn-start-heading { font-family:var(--serif); font-size:1.35rem; font-weight:700; color:var(--cream); margin:0 0 .6rem; }
.vn-steps { margin:0; padding:0; list-style:none; counter-reset:step; display:grid; grid-template-columns:repeat(3,1fr); gap:.75rem 1.25rem; }
.vn-steps li {
  counter-increment:step; position:relative; padding-left:2.5rem;
  font-size:.98rem; line-height:1.5; color:var(--cream);
}
.vn-steps li::before {
  content:counter(step); position:absolute; left:0; top:-.1rem;
  width:1.8rem; height:1.8rem; border-radius:50%; display:grid; place-items:center;
  background:var(--coral); color:var(--vn-oncoral, #241038); font-weight:700; font-size:.95rem;
}
.vn-start-more { font-size:.9rem; color:var(--muted); margin:.75rem 0 0; }

/* ---------- MORE FILTERS: plain checkbox lists behind one button ---------- */
.vn-morefilters { margin-top:1.25rem; border:1px solid var(--line); border-radius:10px; background:var(--bg2); }
.vn-morefilters > summary {
  cursor:pointer; list-style:none; display:flex; flex-wrap:wrap; align-items:center;
  gap:.35rem .75rem; padding:.85rem 1rem; min-height:44px;
}
.vn-morefilters > summary::-webkit-details-marker { display:none; }
.vn-morefilters > summary::before {
  content:""; flex:none; width:.5rem; height:.5rem; border-right:2px solid var(--coral);
  border-bottom:2px solid var(--coral); transform:rotate(-45deg); transition:transform .15s; margin-right:.25rem;
}
.vn-morefilters[open] > summary::before { transform:rotate(45deg); }
.vn-morefilters > summary:focus-visible { outline:3px solid var(--coral); outline-offset:2px; }
.vn-mf-title { font-weight:700; font-size:1rem; color:var(--cream); }
.vn-mf-hint { font-size:.85rem; color:var(--muted); }
.vn-mf-body { padding:0 1rem 1rem; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem 1.5rem; }
.vn-mf-body .vn-filter-note { grid-column:1 / -1; margin:0; }
.vn-check-group { border:0; margin:0; padding:0; min-width:0; }
.vn-check-group legend { font-weight:700; font-size:.9rem; color:var(--coral); padding:0; margin-bottom:.4rem; }
.vn-check-list { display:flex; flex-direction:column; gap:.1rem; }
/* Plain rows, not coloured pills: a visible checkbox and the words. */
main .vn-morefilters .vn-check-list .vn-toggle { display:flex; align-items:center; gap:.6rem; padding:.35rem 0; min-height:36px; }
main .vn-morefilters .vn-check-list .vn-toggle input {
  position:static; opacity:1; width:1.2rem; height:1.2rem; margin:0; flex:none; accent-color:var(--coral-dim);
}
main .vn-morefilters .vn-check-list .vn-toggle:nth-of-type(n) span,
main .vn-morefilters .vn-check-list .vn-toggle input:checked + span {
  background:none; border:0; padding:0; border-radius:0; white-space:normal;
  font-size:.95rem; font-weight:400; color:var(--cream);
}
main .vn-morefilters .vn-check-list .vn-toggle input:checked + span { font-weight:600; }
main .vn-morefilters .vn-check-list .vn-toggle input:checked + span::before { content:none; }
main .vn-morefilters .vn-check-list .vn-toggle input:focus-visible { outline:3px solid var(--coral); outline-offset:2px; }
main .vn-morefilters .vn-check-list .vn-toggle input:focus-visible + span { outline:0; }

@media (max-width:900px) {
  .vn-intro { grid-template-columns:1fr; }
  .vn-steps { grid-template-columns:1fr; }
  .vn-mf-body { grid-template-columns:1fr 1fr; }
}
@media (max-width:600px) {
  .vn-household-img { flex-basis:84px; }
  .vn-why-grid { grid-template-columns:1fr; }
  .vn-mf-body { grid-template-columns:1fr; }
}
@media print { .vn-intro-section, .vn-start-section, .vn-morefilters { display:none !important; } }

/* Accessibility shortcut: one line, the action is a link-style button. */
.vn-doorway { margin-top:.75rem; padding:.5rem .85rem; border:0; border-left:3px solid var(--coral); border-radius:0; }
.vn-doorway-text { flex:1 1 auto; font-size:.92rem; color:var(--cream); }
.vn-doorway-link {
  background:none; border:0; padding:0; font:inherit; color:var(--coral); cursor:pointer;
  text-decoration:underline; text-underline-offset:2px; font-weight:600;
}
.vn-doorway-link:hover { text-decoration-thickness:2px; }
.vn-doorway-link:focus-visible { outline:3px solid var(--coral); outline-offset:2px; }

/* ---------- ABOUT: one collapsible block for both parts ---------- */
section.vn-intro-section { padding:1rem 0; }
.vn-about > summary {
  cursor:pointer; list-style:none; display:flex; flex-wrap:wrap; align-items:center;
  gap:.25rem .75rem; min-height:44px; padding:.25rem 0;
}
.vn-about > summary::-webkit-details-marker { display:none; }
.vn-about > summary::before {
  content:""; flex:none; width:.5rem; height:.5rem; border-right:2px solid var(--coral);
  border-bottom:2px solid var(--coral); transform:rotate(-45deg); transition:transform .15s; margin-right:.25rem;
}
.vn-about[open] > summary::before { transform:rotate(45deg); }
.vn-about > summary:focus-visible { outline:3px solid var(--coral); outline-offset:3px; }
.vn-about-title { font-family:var(--serif); font-weight:700; font-size:1.1rem; color:var(--cream); }
.vn-about-hint { font-size:.85rem; color:var(--muted); }
.vn-about .vn-intro { margin-top:.75rem; }
.vn-about .vn-why .vn-why-grid { margin-top:.5rem; }

/* ---------- HOLIDAY MEALS: one line until opened ---------- */
.vn-holiday { margin:0 0 1rem; border:1px solid var(--line); border-left:4px solid var(--pop-gold, #fdb926); border-radius:8px; background:var(--bg2); }
.vn-holiday[hidden] { display:none; }
.vn-holiday > summary {
  cursor:pointer; list-style:none; display:flex; flex-wrap:wrap; align-items:center;
  gap:.25rem .75rem; padding:.6rem .9rem; min-height:44px;
}
.vn-holiday > summary::-webkit-details-marker { display:none; }
.vn-holiday > summary::before {
  content:""; flex:none; width:.5rem; height:.5rem; border-right:2px solid var(--coral);
  border-bottom:2px solid var(--coral); transform:rotate(-45deg); transition:transform .15s; margin-right:.25rem;
}
.vn-holiday[open] > summary::before { transform:rotate(45deg); }
.vn-holiday > summary:focus-visible { outline:3px solid var(--coral); outline-offset:2px; }
.vn-holiday-title { font-weight:700; font-size:1rem; color:var(--cream); }
.vn-holiday-hint { font-size:.85rem; color:var(--muted); }
.vn-holiday-body { padding:0 .9rem .9rem; }
.vn-holiday-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:.6rem 1.25rem; }
.vn-holiday-list li { font-size:.88rem; line-height:1.5; color:var(--muted); }
.vn-holiday-list strong { display:block; color:var(--cream); }
.vn-holiday-place { display:block; color:var(--cream); font-size:.84rem; }
.vn-holiday-list a { color:var(--coral); text-decoration:underline; text-underline-offset:2px; }
.vn-holiday-foot { font-size:.85rem; color:var(--muted); margin:.75rem 0 0; }
.vn-holiday-foot a { color:var(--coral); text-decoration:underline; }

/* Print sits in the pinned search strip, beside Sort by. */
.vn-searchbar { grid-template-columns:minmax(240px,1fr) auto auto; }
.vn-field-print { align-self:end; }
.vn-field-print .vn-print-btn { white-space:nowrap; padding:.7rem 1rem; }
@media (max-width:900px) {
  .vn-searchbar { grid-template-columns:1fr auto; }
  .vn-field-search { grid-column:1 / -1; }
}

/* ---------- FILTERS IN THE PINNED STRIP ---------- */
section.vn-searchbar-section { padding:.75rem 0 .85rem; }
section.vn-searchbar-section .vn-field { gap:.3rem; }
section.vn-searchbar-section .vn-controls { margin-top:.6rem; }
section.vn-searchbar-section .vn-morefilters { margin-top:.6rem; }
section.vn-searchbar-section .vn-morefilters > summary { padding:.45rem .9rem; min-height:40px; }
section.vn-controls-section { padding:.5rem 0 1rem; }
@media (min-width:901px) {
  /* Pinned: keep the open panel from swallowing the screen. */
  section.vn-searchbar-section .vn-mf-body { max-height:50vh; overflow:auto; }
  section.vn-searchbar-section .vn-field input,
  section.vn-searchbar-section .vn-field select,
  section.vn-searchbar-section .vn-multi-toggle { padding-top:.5rem; padding-bottom:.5rem; }
}

/* Floating Filters button (phones only, after the strip scrolls away). */
.vn-jump {
  position:fixed; right:1rem; bottom:1rem; z-index:70;
  background:#6b21a8; color:#fff; border:0; border-radius:999px;
  padding:.8rem 1.2rem; font:inherit; font-weight:700; font-size:.95rem;
  box-shadow:0 6px 20px rgba(0,0,0,.3); cursor:pointer; min-height:44px;
}
.vn-jump[hidden] { display:none; }
.vn-jump:focus-visible { outline:3px solid var(--cream); outline-offset:3px; }
@media print { .vn-jump { display:none !important; } }

/* ---------- GETTING STARTED: one-line sections that open ---------- */
section.vn-start-section { padding:1rem 0 .75rem; }
.vn-start-stack { display:flex; flex-direction:column; gap:.5rem; }
.vn-start-stack .vn-holiday { margin:0; }
.vn-fold { border:1px solid var(--line); border-radius:8px; background:var(--bg2); }
.vn-fold > summary {
  cursor:pointer; list-style:none; display:flex; flex-wrap:wrap; align-items:center;
  gap:.25rem .75rem; padding:.55rem .9rem; min-height:44px;
}
.vn-fold > summary::-webkit-details-marker { display:none; }
.vn-fold > summary::before {
  content:""; flex:none; width:.5rem; height:.5rem; border-right:2px solid var(--coral);
  border-bottom:2px solid var(--coral); transform:rotate(-45deg); transition:transform .15s; margin-right:.25rem;
}
.vn-fold[open] > summary::before { transform:rotate(45deg); }
.vn-fold > summary:focus-visible { outline:3px solid var(--coral); outline-offset:2px; }
.vn-fold-title { font-family:var(--sans); font-size:1rem; font-weight:700; color:var(--cream); margin:0; }
.vn-fold-hint { font-size:.85rem; color:var(--muted); }
.vn-fold-body { padding:.25rem .9rem .9rem; font-size:.92rem; line-height:1.6; color:var(--muted); }
.vn-fold-body p { margin:.5rem 0 0; }
.vn-fold-body strong { color:var(--cream); }
.vn-fold-body .vn-steps { margin-top:.25rem; }
/* Questions are a plain bulleted list, two across on wide screens. */
.vn-fold-body ul.vn-steps { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.35rem 1.5rem; }
.vn-fold-body ul.vn-steps li { padding-left:1.1rem; font-size:.92rem; color:var(--cream); }
.vn-fold-body ul.vn-steps li::before {
  content:""; width:.4rem; height:.4rem; top:.6rem; left:0; border-radius:50%; background:var(--coral);
}
.vn-holiday-notice strong { color:var(--coral) !important; }
@media (max-width:900px) { .vn-fold-body ul.vn-steps { grid-template-columns:1fr; } }

/* Scholarships now sit after the updates signup, in their own section,
   which disappears while the feature has nothing to show. */
section.vn-scholarships-section { padding:0 0 2.5rem; }
section.vn-scholarships-section .vn-scholarships { margin-top:2.5rem; }
section.vn-scholarships-section:has(.vn-scholarships[hidden]) { display:none; }

/* ---------- PAGES OF TEN ---------- */
.vn-pager { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.75rem 1.25rem; }
.vn-pager[hidden] { display:none; }
.vn-pager button { min-height:44px; padding:.6rem 1.1rem; }
.vn-pager button:disabled { opacity:.4; cursor:default; }
.vn-pager-pos { font-size:.9rem; color:var(--muted); }

/* Printed lists are numbered, so a family can say "number 12" on the phone. */
@media print {
  .vn-grid { counter-reset:vn-item; }
  .vn-card { counter-increment:vn-item; }
  .vn-card-name::before { content:counter(vn-item) ". "; }
}

/* ---------- VILLAGE NOTES SOCIAL (2026-11-26) ----------
   Village Notes' own Instagram and Threads, in the hero and under the
   updates signup. Text labels sit beside the icons so the links read
   the same to screen readers, in translation, and at a glance. */
.vn-social { list-style:none; display:flex; flex-wrap:wrap; gap:.6rem; margin:0; padding:0; }
.vn-social-link {
  display:inline-flex; align-items:center; gap:.5rem; min-height:2.75rem;
  padding:.5rem 1rem; border:1px solid var(--line); border-radius:999px;
  color:var(--cream); text-decoration:none; font-size:.9rem;
  transition:border-color .2s, background .2s, color .2s;
}
.vn-social-link svg { width:1.1rem; height:1.1rem; fill:currentColor; flex:none; }
.vn-social-link:hover, .vn-social-link:focus-visible { border-color:var(--coral); color:var(--coral); }
.vn-social-link:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.vn-social .sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
/* Hero band is #2d1f4e in both themes, so its colors are fixed. */
.vn-hero-follow { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem 1rem; margin:-.5rem 0 1.5rem; }
.vn-hero-follow-label { margin:0; font-size:.95rem; color:rgba(255,255,255,.8); }
.vn-hero-follow .vn-social-link { color:#fff; border-color:rgba(255,255,255,.35); }
.vn-hero-follow .vn-social-link:hover, .vn-hero-follow .vn-social-link:focus-visible { color:#c084fc; border-color:#c084fc; background:rgba(192,132,252,.12); }
.vn-updates-follow { margin-top:2rem; max-width:560px; }
.vn-updates-follow-label { margin:0 0 .75rem; line-height:1.6; color:var(--muted); }


/* Separate pages (villagenotes.org): the band at the top of About, Need Help
   Now, Add a Resource and Get Updates. Same #2d1f4e band as the home page, so
   white text holds its contrast in both themes. */
.vn-page-hero { padding:3rem 0 2.5rem; }
.vn-page-title { font-family:var(--serif); font-weight:400; font-size:clamp(2rem, 4.5vw, 3rem); line-height:1.15; color:#fff; margin:0 0 1rem; }
.vn-page-hero .vn-hero-lede { margin-bottom:0; }
.vn-about-page { display:block; }
/* The language picker normally sits on the dark band. On Get Updates it sits
   on the page background, so it takes the page's text colours there. */
.vn-updates-section .vn-lang { margin-top:0; }
.vn-updates-section .vn-lang label { color:var(--muted); }
.vn-updates-section .vn-lang select { color:var(--cream); background:var(--bg2); border-color:var(--line); }
.vn-submit-section .vn-lang { margin-top:0; }

/* Contact page (villagenotes.org/contact/) */
section.vn-contact-section { padding:3.5rem 0 4rem; }
.vn-contact-wrap { max-width:720px; }
.vn-optional { font-weight:400; text-transform:none; letter-spacing:0; color:var(--muted); }
.vn-contact-note { margin-top:1.75rem; font-size:.95rem; color:var(--muted); line-height:1.7; }
.vn-contact-note a { color:var(--coral); }

/* ---------- town, county and care-type pages (scripts/build-place-pages.js) ---------- */
.vn-place-crumbs ol { list-style:none; display:flex; flex-wrap:wrap; gap:.35rem; padding:0; margin:0 0 1.5rem; font-size:.9rem; color:var(--muted); }
.vn-place-crumbs li + li::before { content:"/"; margin-right:.35rem; opacity:.6; }
.vn-place-summary { border:1px solid var(--line); border-left:4px solid var(--pop-gold); padding:1.25rem 1.5rem; margin-bottom:2rem; }
.vn-place-summary p { margin:0 0 .9rem; }
.vn-place-summary p:last-child { margin-bottom:0; }
.vn-place-help { font-size:.95rem; color:var(--muted); }
.vn-place-jump ul, .vn-place-chips { list-style:none; display:flex; flex-wrap:wrap; gap:.5rem; padding:0; margin:0 0 2rem; }
.vn-place-jump a, .vn-place-chips a { display:inline-block; border:1px solid var(--line); padding:.4rem .8rem; border-radius:999px; text-decoration:none; }
.vn-place-jump a:hover, .vn-place-chips a:hover, .vn-place-jump a:focus-visible, .vn-place-chips a:focus-visible { border-color:var(--pop-teal); }
.vn-place-count { color:var(--muted); font-weight:400; }
.vn-place-section { margin:0 0 2.5rem; padding:0; }
.vn-place .vn-intro-heading { margin-bottom:1rem; }
.vn-place-section .vn-place-chips { margin-bottom:0; }
.vn-place-list { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:1rem; }
.vn-place-item { border:1px solid var(--line); padding:1rem 1.1rem; }
.vn-place-name { font-weight:600; margin:0 0 .25rem; }
.vn-place-meta { font-size:.88rem; color:var(--muted); margin:0 0 .4rem; }
.vn-place-desc { font-size:.92rem; margin:0; }
.vn-place-more { margin:.9rem 0 0; }
.vn-place-cta { border-top:1px solid var(--line); padding-top:2rem; margin-top:1rem; }
.vn-place-cta .btn-primary, .vn-place-cta .btn-ghost { margin:0 .5rem .5rem 0; }
.vn-place-updated { font-size:.85rem; color:var(--muted); margin-top:2rem; }
.vn-place-sub { font-size:1rem; margin:1.25rem 0 .6rem; }
.vn-place-extra { display:none; }
.vn-place-phone, .vn-place-url { font-size:.88rem; margin:.35rem 0 0; }
.vn-place-url { display:none; }
.vn-place-printhead { display:none; }
.vn-place-actions .btn-primary, .vn-place-actions .btn-ghost { margin:0 .5rem .5rem 0; }
.vn-place-printbtn { cursor:pointer; }

/* Printing a town, county or care page gives the complete list in plain
   black and white. The rules above hide every main section except the
   directory results, so the place section is brought back here. */
@media print {
  main > section.vn-place.vn-intro-section { display:block !important; padding:0 !important; background:#fff !important; }
  .vn-place, .vn-place * { color:#000 !important; background:none !important; }
  .vn-place-printhead { display:block; margin:0 0 .6rem; font-size:9pt; border-bottom:2px solid #000; padding-bottom:.3rem; }
  .vn-place-printtitle { font-size:16pt; font-weight:700; margin:0 0 .15rem; }
  .vn-place-printhead p { margin:0; }
  .vn-place-crumbs, .vn-place-jump, .vn-place-actions, .vn-place-more, .vn-place-cta,
  .vn-place-help, .vn-place-chips, .vn-place-section:has(.vn-place-chips) { display:none !important; }
  .vn-place-summary { border:1px solid #000 !important; padding:.4rem .6rem; margin:0 0 .6rem; font-size:9pt; }
  .vn-place-extra { display:block !important; }
  .vn-place-section { margin:0 0 .6rem !important; }
  .vn-place .vn-intro-heading { font-size:12pt !important; margin:.4rem 0 .3rem !important; break-after:avoid; }
  .vn-place-list { display:block !important; columns:2; column-gap:.3in; }
  .vn-place-item { border:0 !important; border-bottom:1px solid #bbb !important; padding:.2rem 0 !important; break-inside:avoid; font-size:8.5pt; line-height:1.25; }
  .vn-place-name { font-size:9.5pt; margin:0 !important; }
  .vn-place-name a { text-decoration:none; }
  .vn-place-meta, .vn-place-desc, .vn-place-phone, .vn-place-url { font-size:8.5pt !important; margin:0 !important; }
  .vn-place-url { display:block; }
  .vn-visually-hidden { display:none !important; }
  .vn-place-updated { font-size:8pt; margin-top:.5rem; }
}

/* Connecticut Paid Leave partnership page */
.vn-ctpl-logos { display:flex; align-items:center; gap:1.5rem; flex-wrap:wrap; margin:0 0 2rem; padding:1.25rem 1.5rem; background:#fff; border-radius:10px; border-left:6px solid #0045ab; width:fit-content; }
.vn-ctpl-logos img { height:108px; width:auto; display:block; }
.vn-ctpl-x { font-size:2rem; color:#0045ab; font-weight:300; }
.vn-ctpl-page .vn-steps li { margin-bottom:.5rem; }
.vn-ctpl-page .vn-place-section > p { margin:0 0 1rem; }
.vn-ctpl-logos img.vn-ctpl-logo-partner { height:129px; }
.vn-place-checked { font-size:.8rem; color:var(--muted); margin:.35rem 0 0; }
.vn-es-link { margin:.4rem 0 0; font-size:.85rem; }
.vn-es-switch { margin:0 0 1rem; font-size:.9rem; text-align:right; }
.vn-es-help { border:1px solid var(--line); border-left:4px solid var(--coral); padding:1.1rem 1.3rem; margin-bottom:2rem; }
.vn-es-help .vn-place-chips { margin-bottom:0; }
.vn-es .vn-steps li { margin-bottom:.4rem; }

/* Filters that have nothing to offer for the chosen track stay hidden. The
   More filters layout rule above is more specific than .vn-toggle[hidden],
   so it needs its own hidden rule. */
main .vn-morefilters .vn-check-list .vn-toggle[hidden],
.vn-check-group[hidden] { display:none; }

/* WCAG 1.4.3: Spanish-pages link on the dark purple submit section */
section.vn-submit-section .vn-es-link a { color:#e9d5ff; text-underline-offset:3px; }
section.vn-submit-section .vn-es-link a:hover, section.vn-submit-section .vn-es-link a:focus-visible { color:#fff; }

/* "Report a problem" link on listing cards and place-page lists: small and
   quiet so it never competes with the listing's own links. Hidden in print. */
.vn-card-report, .vn-place-report { margin:.35rem 0 0; font-size:.75rem; }
.vn-card-report a, .vn-place-report a { color:var(--muted); text-decoration:underline; text-underline-offset:2px; }
.vn-card-report a:hover, .vn-card-report a:focus-visible,
.vn-place-report a:hover, .vn-place-report a:focus-visible { color:inherit; }
@media print { .vn-card-report, .vn-place-report { display:none !important; } }

/* Home hero on desktop (2026-12-01): the language picker moves up beside the
   logo instead of taking a row of its own above it, the band starts closer to
   the nav, and the intro text runs the full width of the container. Phones
   and tablets keep the stacked layout. */
@media (min-width: 1024px) {
  .vn-hero:not(.vn-page-hero) { padding-top:2rem; }
  .vn-hero:not(.vn-page-hero) > .container { position:relative; }
  .vn-hero:not(.vn-page-hero) .vn-lang {
    position:absolute; top:0; right:3rem; margin:0; max-width:calc(100% - 3rem - 30rem);
  }
  .vn-hero:not(.vn-page-hero) .vn-hero-lede,
  .vn-hero:not(.vn-page-hero) .vn-hero-signup { max-width:none; }
}
/* "Páginas en español" on the dark band: readable in both themes. */
.vn-hero .vn-es-link a { color:#e9d5ff; text-underline-offset:3px; }
.vn-hero .vn-es-link a:hover, .vn-hero .vn-es-link a:focus-visible { color:#fff; }

/* Footer lines up with the page content (2026-12-01): the columns and the
   copyright line use the same 1100px container width as the body, and the
   three link columns spread across it instead of leaving an empty fourth. */
footer[role="contentinfo"] > .footer-cols,
footer[role="contentinfo"] > .footer-base {
  width:100%; max-width:calc(1100px - 6rem); margin-left:auto; margin-right:auto;
}
@media (min-width: 901px) {
  footer[role="contentinfo"] > .footer-cols { grid-template-columns:repeat(3, 1fr); }
}
