/* ==========================================================
   Cities + About pages
   ========================================================== */
.pill { align-self: flex-start; display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.pill--matcha { background: var(--matcha); color: var(--forest); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-size: .86rem; font-weight: 500; }
.chips--dark li { background: color-mix(in srgb, var(--ivory) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ivory) 20%, transparent); color: var(--matcha-pale); }

/* ---------- Cities: hero ---------- */
.c-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }
.c-hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.c-hero-copy { grid-column: 1 / span 6; }
.c-hero-copy h1 { margin-bottom: 20px; }
.c-actions { display: flex; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.c-now { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 14px; }
.c-now-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.c-count { font-size: .9rem; color: var(--matcha-pale); }
.c-count strong { color: var(--ivory); font-variant-numeric: tabular-nums; }
.c-now-img { margin: -10px -10px -18px; }
.c-now-img img { width: 100%; height: auto; display: block; }
.c-now h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0; }
@media (max-width: 900px) { .c-hero-copy, .c-now { grid-column: 1 / -1; } }

/* ---------- Cities: map + side panel ---------- */
.map-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: stretch; }
.map-layout .map-card { grid-column: 1 / span 8; }
.map-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.map-top h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0; }
.map-top p { margin: 0; }
.map-layout .map-detail {
  --focus: var(--ivory); --link: var(--ivory);
  grid-column: 9 / span 4; margin: 0; display: flex; flex-direction: column; gap: 6px;
  background: var(--forest); color: var(--ivory); border-radius: var(--r-lg); padding: 22px;
}
.map-layout .map-detail .month { text-align: left; color: var(--matcha-light); font-size: 1.1rem; }
.map-layout .map-detail .month small { display: inline; color: var(--matcha-pale); }
.map-layout .map-detail h3 { font-size: 1.7rem; margin: 0; }
.map-layout .map-detail p { color: var(--matcha-pale); margin: 0 0 14px; }
.map-layout .map-detail .btn { margin-top: auto; align-self: flex-start; }
.md-img { background: color-mix(in srgb, var(--ivory) 6%, transparent); border-radius: var(--r-md); margin-bottom: 10px; }
.md-img img { width: 100%; height: auto; }
.md-img img[hidden] { display: none; }
@media (max-width: 900px) { .map-layout .map-card, .map-layout .map-detail { grid-column: 1 / -1; } }
.us-map .arcs path { stroke-dashoffset: 0; animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -18; } }
@media (prefers-reduced-motion: reduce) { .us-map .arcs path { animation: none; } }

/* ---------- Cities: calendar list ---------- */
.cal-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: 28px; }
.cal-head h2 { grid-column: 1 / span 7; margin: 0; }
.cal-head p { grid-column: 9 / span 4; margin: 0; }
@media (max-width: 860px) { .cal-head h2, .cal-head p { grid-column: 1 / -1; } }
.cal { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--forest); }
.cal-row {
  display: grid; grid-template-columns: 110px 1.1fr 1.6fr 170px; gap: 24px; align-items: center;
  padding: 18px 12px; border-bottom: 1px solid var(--line); border-radius: 0; transition: background .25s;
}
.cal-row:hover { background: var(--surface); }
.cal-row.is-now { background: var(--matcha-pale); }
.cal-when { display: flex; flex-direction: column; line-height: 1; }
.cal-mo { font-family: var(--display); font-weight: 900; font-size: 2.4rem; color: var(--olive); }
.cal-yr { font-size: .85rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.cal-city h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 0; }
.cal-city p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.cal-city b { color: var(--forest); }
.cal-img img { width: 100%; height: auto; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.cal-row:hover .cal-img img { transform: translateY(-4px) rotate(-3deg) scale(1.04); }
@media (max-width: 860px) {
  .cal-row { grid-template-columns: 76px 1fr 96px; gap: 10px 14px; }
  .cal-mo { font-size: 1.8rem; }
  .cal-row .chips { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Cities: vote ---------- */
.vote-tile { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.vote-tile > div:first-child { grid-column: 1 / span 5; }
.vote-tile .vote-list { grid-column: 7 / span 6; }
.vote-tile h2 { margin: 16px 0 12px; }
.vote-tile .note-small { color: var(--matcha-pale); }
.vote-tile .vote-item { --focus: var(--olive); color: var(--ink); }
.vote-tile .pct { font-family: var(--display); font-weight: 900; color: var(--olive); margin-left: 6px; }
@media (max-width: 860px) { .vote-tile > div:first-child, .vote-tile .vote-list { grid-column: 1 / -1; } }

/* ---------- About: hero ---------- */
.a-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(16px, 3vw, 32px); }
.a-hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.a-hero-grid > div { grid-column: 1 / span 7; }
.a-hero-grid h1 { margin-bottom: 22px; }
.a-hero-art { grid-column: 8 / span 5; margin: 0; padding: 18px 18px 24px; }
.a-hero-art img { width: 100%; height: auto; }
.a-hero-art figcaption { font-size: .95rem; color: var(--forest); padding: 0 8px; }
@media (max-width: 900px) { .a-hero-grid > div, .a-hero-art { grid-column: 1 / -1; } }

/* ---------- About: journey with a dotted route ---------- */
.journey { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.journey::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 15px; height: 0;
  border-top: 3px dotted var(--olive); opacity: .5;
}
.journey li { position: relative; }
.j-pin { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ivory); position: relative; z-index: 1; margin-bottom: 18px; }
.j-pin svg { width: 22px; height: 28px; color: var(--forest); }
.journey li:last-child .j-pin svg { color: var(--matcha); }
.j-when { font-weight: 700; color: var(--olive); font-size: .9rem; margin-bottom: 6px; }
.journey h3 { font-size: 1.45rem; }
.journey li > p:last-child { color: var(--muted); }
@media (max-width: 860px) {
  .journey { grid-template-columns: 1fr; gap: 26px; padding-left: 48px; }
  .journey::before { left: 15px; right: auto; top: 8px; bottom: 8px; height: auto; border-top: 0; border-left: 3px dotted var(--olive); }
  .j-pin { position: absolute; left: -48px; top: -4px; margin: 0; }
}

/* ---------- About: where the money goes ---------- */
.split-tile { padding: clamp(24px, 4vw, 56px); }
.split-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: 28px; }
.split-head h2 { grid-column: 1 / span 7; margin: 0; }
.split-head p { grid-column: 9 / span 4; margin: 0; }
@media (max-width: 860px) { .split-head h2, .split-head p { grid-column: 1 / -1; } }
.money-bar { display: flex; height: 72px; gap: 4px; border-radius: 16px; overflow: hidden; }
.money-bar span { transform-origin: left; animation: grow 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.money-bar span:nth-child(2) { animation-delay: .1s; } .money-bar span:nth-child(3) { animation-delay: .2s; }
.money-bar span:nth-child(4) { animation-delay: .3s; } .money-bar span:nth-child(5) { animation-delay: .4s; }
@keyframes grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .money-bar span { animation: none; } }
.money-legend { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.money-legend li { display: flex; gap: 10px; align-items: flex-start; }
.money-legend i { flex: 0 0 14px; height: 14px; border-radius: 4px; margin-top: 7px; }
.money-legend strong { display: block; font-family: var(--display); font-weight: 900; font-size: 1.9rem; line-height: 1.1; }
.money-legend small { display: block; color: var(--muted); font-size: .88rem; margin-top: 4px; }
@media (max-width: 980px) { .money-legend { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .money-legend { grid-template-columns: 1fr; } .money-bar { height: 52px; } }

/* ---------- About: promises (sticky heading) ---------- */
.promise { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.promise-head { grid-column: 1 / span 5; position: sticky; top: 110px; align-self: start; }
.promise-list { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; counter-reset: p; }
.promise-list li { counter-increment: p; padding: 28px 0 28px 64px; border-top: 1.5px solid var(--forest); position: relative; }
.promise-list li::before { content: "0" counter(p); position: absolute; left: 0; top: 30px; font-family: var(--display); font-weight: 900; font-size: 1.3rem; color: var(--olive); }
.promise-list h3 { font-size: 1.7rem; }
.promise-list p { color: var(--muted); margin: 0; font-size: 1.05rem; }
@media (max-width: 860px) { .promise-head, .promise-list { grid-column: 1 / -1; position: static; } }

/* ---------- About: makers ---------- */
.maker-tile { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.maker-tile > div { grid-column: 1 / span 5; }
.maker-tile .lead { color: var(--matcha-pale); }
.maker-list { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; counter-reset: m; }
.maker-list li { counter-increment: m; display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-top: 1px solid color-mix(in srgb, var(--ivory) 25%, transparent); color: var(--matcha-pale); }
.maker-list li::before { content: counter(m); grid-row: span 2; font-family: var(--display); font-weight: 900; font-size: 1.4rem; color: var(--matcha-light); }
.maker-list strong { color: var(--ivory); font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
@media (max-width: 860px) { .maker-tile > div, .maker-list { grid-column: 1 / -1; } }

/* ---------- September: the members' vote ---------- */
.cal-row--vote { background: var(--paper); }
.cal-vote {
  display: grid; place-items: center; width: min(96px, 100%); aspect-ratio: 1; margin-inline: auto;
  border-radius: 50%; border: 2.5px dashed var(--forest); color: var(--forest); text-decoration: none;
  font: 900 2.6rem/1 var(--display); transition: background .2s, color .2s, transform .3s;
}
.cal-vote:hover { background: var(--matcha); transform: rotate(-8deg); }
@media (prefers-reduced-motion: reduce) { .cal-vote { transition: none; } }

/* Reflow at 400% zoom (320 px): long item names wrap inside their chip, and the
   calendar's flexible column may shrink below its longest chip. */
.chips li { overflow-wrap: anywhere; min-width: 0; }
.cal-row { grid-template-columns: 110px minmax(0, 1.1fr) minmax(0, 1.6fr) 170px; }
.cal-row > * { min-width: 0; }
@media (max-width: 860px) { .cal-row { grid-template-columns: 76px minmax(0, 1fr) 96px; } }

/* ---------- City pages ---------- */
.city-hero .c-hero-copy .pill { margin-bottom: 14px; }
/* keep the default stretch: shrinking the photo's wrapper to fit left it 0 px wide
   until the image loaded, and its arrival shifted the page (CLS) */
.city-box { text-align: center; }
.city-hero .pill { background: var(--city-primary, var(--matcha)); color: var(--forest); box-shadow: inset 0 0 0 2px var(--city-secondary, transparent); }
.city-hero[data-city-theme] .pill { color: var(--ivory); }
.city-hero h1 em { color: var(--city-primary, var(--olive)); }
.city-box .c-count { margin: 0; color: var(--matcha-pale); }
.chips--big { gap: 10px; }
.chips--big li { font-size: 1rem; padding: 10px 16px; }
.makers { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .makers { grid-template-columns: 1fr; } }
.maker { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: var(--surface); border-radius: var(--r-md); padding: 18px; }
.mk-pin { width: 34px; height: 44px; color: var(--forest); }
.mk-pin svg { width: 100%; height: 100%; }
.maker h3 { font-size: 1.15rem; margin: 0 0 4px; }
.maker p { margin: 0; font-size: .95rem; }
.city-facts li { font-size: 1.08rem; }
.city-nav-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.city-step {
  display: grid; gap: 2px; padding: 16px 22px; border-radius: var(--r-md); background: var(--surface);
  text-decoration: none; min-width: min(260px, 100%); transition: transform .25s, box-shadow .25s;
}
.city-step:hover { transform: translateY(-2px); box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 10%, transparent); }
.city-step small { font-family: var(--mono); font-size: .76rem; color: var(--olive); }
.city-step strong { font-family: var(--display); font-weight: 900; font-size: 1.5rem; }
.city-step--next { text-align: right; margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .city-step { transition: none; } }
.cal-city h3 a { color: var(--city-primary, var(--ink)); text-decoration: none; }
.cal-city h3 a:hover { text-decoration: underline; text-decoration-color: var(--city-secondary, var(--matcha)); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.md-more { color: var(--ivory); margin: 4px 0 14px; align-self: flex-start; }
