/* VOICEFOLK — live-v1.css: the founding-places counter, and the bits of the shared header and menu every page needs.
   Loaded after site.css (and overlays.css / voices.css / tools.css where a page has them). */

/* ---------- "42 of 100 founding places left" ---------- */
.fmeter { display: grid; gap: .45rem; width: min(100%, 25rem); margin-block: .35rem .2rem; }
.fmeter__label {
  margin: 0; font-family: var(--hand); font-weight: 600; font-size: var(--fs-hand); line-height: 1.05;
  color: var(--tomato-ink); rotate: -1.5deg; transform-origin: left center;
}
.fmeter__n { font-family: var(--display); font-weight: 800; font-size: 1.2em; letter-spacing: -.02em; color: var(--ink); }
.fmeter__bar {
  position: relative; height: 16px; border-radius: 999px; background: var(--print);
  box-shadow: inset 0 0 0 2px var(--ink), 2px 2px 0 rgb(var(--shadow-rgb) / .9);
  rotate: -.7deg; overflow: hidden;
}
.fmeter__fill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; max-width: calc(100% - 8px); border-radius: 999px;
  background: repeating-linear-gradient(-55deg, var(--tomato) 0 5px, var(--btn) 5px 8px);
}
.fmeter--hero, .fmeter--cta { width: min(100%, 27rem); margin-inline: auto; justify-items: center; text-align: center; }
.fmeter--hero .fmeter__label, .fmeter--cta .fmeter__label { transform-origin: center; }
.fmeter--hero .fmeter__bar, .fmeter--cta .fmeter__bar { width: 100%; }
.fmeter--card { width: 100%; margin-block: .1rem .35rem; }
.fmeter--card .fmeter__label { font-size: 1.25rem; }
.fmeter--card .fmeter__bar { height: 13px; }
.fmeter--card .fmeter__fill { top: 3px; bottom: 3px; left: 3px; max-width: calc(100% - 6px); }
.fmeter--menu { width: 100%; margin-top: .4rem; }
.fmeter--form { width: 100%; margin-block: -.25rem 1rem; }
.founding .fmeter { margin-top: .5rem; }
.vmore__card .fmeter { margin-block: .1rem .8rem; }
.signoff__copy .fmeter--cta { margin-top: 1.1rem; }
@media (prefers-reduced-motion: no-preference) {
  .fmeter__fill { animation: vf-fmeter-grow 1.1s var(--ease) both; transform-origin: left center; }
  @keyframes vf-fmeter-grow { from { transform: scaleX(.15); } to { transform: none; } }
}

/* ---------- shared header: the current section ---------- */
.site-nav a[aria-current="page"] { background-size: 100% .32em; }

/* narrow cards on phones: keep "42 of 100 founding places left" on one line */
@media (max-width: 30rem) {
  .vmore__card .fmeter__label, .founding .fmeter__label, .fmeter--menu .fmeter__label, .fmeter--form .fmeter__label { font-size: 1.2rem; }
}
