/* City site components (used together with jurisdiction.css):
   narrative text, per-plate-read callouts, the Archives list, vote cells and the portrait credit. */

:root{--line:#d8ddd5}

.narrative p{max-width:78ch}
.narrative .tag{margin-left:4px}

.callout-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:16px;margin:18px 0 10px}
.callout{background:#fff;border:1px solid var(--line);border-left:6px solid var(--red);border-radius:8px;padding:16px 16px 14px}
.callout .big{display:block;font-size:2.05rem;font-weight:900;line-height:1.1;color:var(--navy);margin:6px 0 4px}
.callout p{margin:4px 0 0;font-size:.96rem}
.callout-note{font-size:.92rem;color:var(--muted);max-width:78ch}

.section-lead{max-width:78ch}

/* Archives */
.archive-group{margin:34px auto 8px}
.archive-group h2{margin-bottom:6px}
.archive-entry{padding:12px 0 12px;border-bottom:1px solid var(--line)}
.archive-entry h3{margin:0 0 3px;font-size:1.04rem}
.archive-date{display:inline-block;font-size:.78rem;font-weight:800;letter-spacing:.04em;color:var(--muted);text-transform:uppercase;margin-bottom:2px}
.archive-entry p{margin:2px 0 6px;max-width:78ch}
.archive-links{font-size:.88rem}
.archive-links a{margin-right:12px;white-space:normal}
.archive-flag{display:inline-block;margin-left:8px;padding:1px 7px;border-radius:4px;background:#fff3d6;color:#6b4b00;border:1px solid #e0c27a;font-size:.72rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}

/* Home hero without art: the back buttons and jumpers sit in their own bar */
.hero-art.no-art{background:none}
.hero-art.no-art .livermore-city-navigation{position:relative;top:auto;left:auto;right:auto;padding:14px 22px;flex-wrap:wrap}
.hero-art.no-art .livermore-back-controls,.hero-art.no-art .livermore-jump-controls{flex-wrap:wrap}

.callout-wide{grid-column:1/-1;text-align:left}
.callout-wide p{font-size:1.15rem;line-height:1.5;margin:0}

/* Take Action */
.table-scroll{overflow-x:auto}
.official-table td.vote-cell{text-align:center;white-space:nowrap}
/* Take Action tables with several vote columns. Every column stays; words never break mid-word. Widths are tuned so the whole
   table fits the 1040px page column; if a narrower window cannot fit it, the table scrolls inside its own box with the Official
   column pinned. Below 780px the shared card layout takes over (labels above values). */
@media(min-width:781px){
  .official-table-votes{font-size:.9rem}
  .official-table-votes th,.official-table-votes td{padding:8px 6px;overflow-wrap:normal;word-break:normal;hyphens:none}
  .official-table-votes th:first-child,.official-table-votes td:first-child{position:sticky;left:0;z-index:2;background:var(--paper)}
  .official-table-votes th:nth-child(2),.official-table-votes td:nth-child(2){min-width:7.5rem}
  .official-table-votes td.official-person{min-width:11.5rem!important}
  .official-table-votes th:nth-child(n+3):not(:last-child),.official-table-votes td:nth-child(n+3):not(:last-child){min-width:5.1rem}
  .official-table-votes th:last-child,.official-table-votes td:last-child{min-width:12rem}
  .official-table-votes th small{font-weight:600}
}
.official-table td.vote-none{color:var(--muted);text-align:center}
.official-table .vote-no-vote{font-weight:850;color:#7a1d1d}
.portrait-credit{font-size:.88rem;color:var(--muted);max-width:90ch}
.portrait-credit details{margin-top:6px}
.portrait-credit li{margin:2px 0;word-break:break-all}
.no-portrait{display:inline-flex;align-items:center;justify-content:center;width:45px;height:55px;flex:0 0 45px;border-radius:7px;background:#e7dfcd;color:var(--muted);font-size:.7rem;text-align:center;line-height:1.1}
.rule-box{background:#fff;border:1px solid var(--line);border-left:6px solid var(--navy);border-radius:8px;padding:12px 16px;margin:16px 0;max-width:90ch}
.rule-box p{margin:6px 0}

/* Shared pages (Victories, Responses, Resources, Support) in Livermore's layout: each <section> is a centered
   1040px column with 22px side padding and 46px vertical spacing; the dark band runs full width. Also applies to the
   San Francisco pages, where the sections sit inside .content. */
main.shared-page > .content{width:100%;max-width:none;margin:0;padding:0}
main.shared-page > section,main.shared-page > .content > section{max-width:1040px;margin:0 auto;padding:46px 22px}
main.shared-page h2{font-size:2.05rem;line-height:1.1;margin:0 0 18px;text-transform:uppercase}
main.shared-page h3{margin-bottom:6px}
main.shared-page .lead{font-size:1.24rem;max-width:760px;margin-left:0;margin-right:0}
main.shared-page > section > h1,main.shared-page > .content > section > h1{text-align:left}
main.shared-page .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
main.shared-page .grid.two{grid-template-columns:repeat(2,1fr)}
main.shared-page .card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px;box-shadow:0 6px 18px #0000000b}
main.shared-page .source{margin-top:12px;padding:11px 13px;background:#f0f4ef;border-left:5px solid var(--navy);font-size:.92rem}
main.shared-page .source a{font-weight:800}
main.shared-page .evidence{background:#ecebe4;max-width:none;padding-left:0;padding-right:0}
main.shared-page .evidence > *{max-width:996px;margin-left:auto;margin-right:auto}
main.shared-page .notice{padding:18px;border:2px solid #f1c84b;background:#fff9df;border-radius:10px}
main.shared-page .peace{background:#e9f4e8;border:2px solid #286c35;padding:20px;border-radius:10px}
main.shared-page .band{background:#162018;color:#fff;max-width:none}
main.shared-page .band > div{max-width:1040px;margin:0 auto;padding:48px 22px}
main.shared-page .band h2{color:#fff}

@media(max-width:780px){
  .official-table-votes td{grid-template-columns:minmax(0,1fr)}
  .official-table-votes td::before{padding:0 0 3px}
  .official-table td.vote-cell,.official-table td.vote-none{white-space:normal;text-align:left}
  .callout .big{font-size:1.7rem}
  main.shared-page .grid,main.shared-page .grid.two{grid-template-columns:1fr}
  main.shared-page h2{font-size:1.65rem}
}

/* Landing pages (cities whose research is not yet published) */
.landing-breadcrumb{font-size:.95rem;font-weight:700;margin:0 0 10px}
.landing-member{font-size:1.1rem;font-weight:800;margin:10px 0}
.landing-member a{text-decoration:underline}
.partner-sites{max-width:1040px;margin:0 auto;padding:30px 22px}
.partner-sites ul{margin:8px 0 0;padding-left:1.2em}
.victories-local{max-width:1040px;margin:0 auto;padding:30px 22px}
.victories-local p{max-width:78ch}

.portrait-placeholder{display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;width:62px;flex:0 0 62px;border-radius:7px;overflow:hidden;background:#e7dfcd;color:var(--muted);text-align:center;vertical-align:middle}.portrait-placeholder svg{display:block;width:100%;height:auto}.portrait-placeholder small{display:block;font-size:.58rem;line-height:1.15;padding:3px 2px}.portrait-placeholder-large{width:140px;flex-basis:140px}.portrait-placeholder-large small{font-size:.75rem}
.preliminary-banner{margin:0;text-align:center}.preliminary-banner p{margin:0;font-weight:700;font-size:1.1em;text-align:center}section.preliminary{max-width:none;margin:0 10%;padding:18px 0}@media (max-width:600px){section.preliminary{margin:0 16px}}
main{overflow-wrap:anywhere}

.outrage-line{color:var(--red,#a62b2b);text-align:center;font-weight:800;font-size:1.3rem;line-height:1.3;margin:0 0 16px}

/* Playbook v32: a place that has discontinued its ALPRs. The 0 blinks once every 3 seconds; confetti is pure CSS, spread across the whole box and kept behind the number and the note (z-index 0 under the text at z-index 1), so the text stays fully readable */
.discontinued-card{position:relative;overflow:hidden;isolation:isolate}
.discontinued-card>*:not(.confetti){position:relative;z-index:1}
.discontinued-card .confetti{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;container-type:size}
/* Confetti burst (11 Nov 2026): every piece starts near the centre of the box, flies up and outward (decelerating), then falls with gravity (accelerating),
   spinning and fading; the box clips it and the number and note sit above it. It repeats every 4 seconds. CSS only. */
.discontinued-card .confetti i{position:absolute;left:50%;top:56%;border-radius:2px;opacity:0;transform:translate(-50%,-50%);animation:confetti-burst 4s infinite}
@keyframes confetti-burst{
0%{transform:translate(-50%,-50%) translate(0,0) rotate(0deg) scale(.6);opacity:0;animation-timing-function:cubic-bezier(.15,.7,.35,1)}
6%{opacity:1}
38%{transform:translate(-50%,-50%) translate(var(--dx1),var(--up)) rotate(var(--r1)) scale(1);opacity:1;animation-timing-function:cubic-bezier(.55,0,.9,.55)}
80%{opacity:.85}
100%{transform:translate(-50%,-50%) translate(var(--dx2),var(--down)) rotate(var(--r2)) scale(1);opacity:0}}
@media (prefers-reduced-motion:reduce){.discontinued-card .blink-zero{animation:none;opacity:1}
.discontinued-card .confetti i{animation:none;opacity:.75;transform:translate(-50%,-50%) translate(var(--sx),var(--sy)) rotate(var(--sr))}}
.discontinued-card .confetti i:nth-child(1){background:#f4a261;width:9px;height:9px;--dx1:-21.0cqw;--up:-19.6cqh;--dx2:-32.5cqw;--down:30.0cqh;--r1:-220deg;--r2:-528.0deg;--sx:-46.0cqw;--sy:-48.0cqh;--sr:0deg;animation-delay:0.00s}
.discontinued-card .confetti i:nth-child(2){background:#2a9d8f;width:7px;height:12px;--dx1:-23.8cqw;--up:-27.7cqh;--dx2:-36.9cqw;--down:36.4cqh;--r1:380deg;--r2:912.0deg;--sx:-7.1cqw;--sy:12.2cqh;--sr:47deg;animation-delay:0.32s}
.discontinued-card .confetti i:nth-child(3){background:#1877f2;width:7px;height:12px;--dx1:-30.1cqw;--up:-25.9cqh;--dx2:-46.7cqw;--down:42.8cqh;--r1:-260deg;--r2:-624.0deg;--sx:31.8cqw;--sy:-7.6cqh;--sr:94deg;animation-delay:0.18s}
.discontinued-card .confetti i:nth-child(4){background:#f1c40f;width:9px;height:9px;--dx1:-18.0cqw;--up:-29.7cqh;--dx2:-27.9cqw;--down:34.8cqh;--r1:420deg;--r2:1008.0deg;--sx:-21.3cqw;--sy:-27.3cqh;--sr:141deg;animation-delay:0.04s}
.discontinued-card .confetti i:nth-child(5){background:#9b5de5;width:7px;height:12px;--dx1:-24.3cqw;--up:-29.4cqh;--dx2:-37.7cqw;--down:41.2cqh;--r1:-300deg;--r2:-720.0deg;--sx:17.5cqw;--sy:-47.1cqh;--sr:8deg;animation-delay:0.36s}
.discontinued-card .confetti i:nth-child(6){background:#e63946;width:7px;height:12px;--dx1:-21.9cqw;--up:-39.4cqh;--dx2:-34.0cqw;--down:33.2cqh;--r1:460deg;--r2:1104.0deg;--sx:-35.6cqw;--sy:13.1cqh;--sr:55deg;animation-delay:0.22s}
.discontinued-card .confetti i:nth-child(7){background:#f4a261;width:9px;height:9px;--dx1:-18.2cqw;--up:-31.3cqh;--dx2:-28.2cqw;--down:39.6cqh;--r1:-340deg;--r2:-816.0deg;--sx:3.3cqw;--sy:-6.7cqh;--sr:102deg;animation-delay:0.09s}
.discontinued-card .confetti i:nth-child(8){background:#2a9d8f;width:7px;height:12px;--dx1:-14.7cqw;--up:-39.9cqh;--dx2:-22.7cqw;--down:31.6cqh;--r1:220deg;--r2:528.0deg;--sx:42.2cqw;--sy:-26.4cqh;--sr:149deg;animation-delay:0.40s}
.discontinued-card .confetti i:nth-child(9){background:#1877f2;width:7px;height:12px;--dx1:-21.3cqw;--up:-41.4cqh;--dx2:-33.0cqw;--down:38.0cqh;--r1:-380deg;--r2:-912.0deg;--sx:-10.9cqw;--sy:-46.2cqh;--sr:16deg;animation-delay:0.27s}
.discontinued-card .confetti i:nth-child(10){background:#f1c40f;width:9px;height:9px;--dx1:-8.1cqw;--up:-38.8cqh;--dx2:-12.6cqw;--down:30.0cqh;--r1:260deg;--r2:624.0deg;--sx:28.0cqw;--sy:14.0cqh;--sr:63deg;animation-delay:0.14s}
.discontinued-card .confetti i:nth-child(11){background:#9b5de5;width:7px;height:12px;--dx1:-13.8cqw;--up:-41.6cqh;--dx2:-21.4cqw;--down:36.4cqh;--r1:-420deg;--r2:-1008.0deg;--sx:-25.1cqw;--sy:-5.8cqh;--sr:110deg;animation-delay:0.00s}
.discontinued-card .confetti i:nth-child(12){background:#e63946;width:7px;height:12px;--dx1:-2.7cqw;--up:-36.4cqh;--dx2:-4.2cqw;--down:42.8cqh;--r1:300deg;--r2:720.0deg;--sx:13.8cqw;--sy:-25.5cqh;--sr:157deg;animation-delay:0.32s}
.discontinued-card .confetti i:nth-child(13){background:#f4a261;width:9px;height:9px;--dx1:-7.1cqw;--up:-40.3cqh;--dx2:-11.0cqw;--down:34.8cqh;--r1:-460deg;--r2:-1104.0deg;--sx:-39.4cqw;--sy:-45.3cqh;--sr:24deg;animation-delay:0.18s}
.discontinued-card .confetti i:nth-child(14){background:#2a9d8f;width:7px;height:12px;--dx1:2.3cqw;--up:-45.6cqh;--dx2:3.5cqw;--down:41.2cqh;--r1:340deg;--r2:816.0deg;--sx:-0.5cqw;--sy:14.9cqh;--sr:71deg;animation-delay:0.04s}
.discontinued-card .confetti i:nth-child(15){background:#1877f2;width:7px;height:12px;--dx1:-1.6cqw;--up:-37.7cqh;--dx2:-2.5cqw;--down:33.2cqh;--r1:-220deg;--r2:-528.0deg;--sx:38.4cqw;--sy:-4.9cqh;--sr:118deg;animation-delay:0.36s}
.discontinued-card .confetti i:nth-child(16){background:#f1c40f;width:9px;height:9px;--dx1:7.4cqw;--up:-41.4cqh;--dx2:11.5cqw;--down:39.6cqh;--r1:380deg;--r2:912.0deg;--sx:-14.7cqw;--sy:-24.6cqh;--sr:165deg;animation-delay:0.22s}
.discontinued-card .confetti i:nth-child(17){background:#9b5de5;width:7px;height:12px;--dx1:4.2cqw;--up:-46.6cqh;--dx2:6.6cqw;--down:31.6cqh;--r1:-260deg;--r2:-624.0deg;--sx:24.2cqw;--sy:-44.4cqh;--sr:32deg;animation-delay:0.09s}
.discontinued-card .confetti i:nth-child(18){background:#e63946;width:7px;height:12px;--dx1:10.8cqw;--up:-36.6cqh;--dx2:16.8cqw;--down:38.0cqh;--r1:420deg;--r2:1008.0deg;--sx:-28.9cqw;--sy:15.8cqh;--sr:79deg;animation-delay:0.40s}
.discontinued-card .confetti i:nth-child(19){background:#f4a261;width:9px;height:9px;--dx1:9.4cqw;--up:-42.1cqh;--dx2:14.5cqw;--down:30.0cqh;--r1:-300deg;--r2:-720.0deg;--sx:10.0cqw;--sy:-4.0cqh;--sr:126deg;animation-delay:0.27s}
.discontinued-card .confetti i:nth-child(20){background:#2a9d8f;width:7px;height:12px;--dx1:21.3cqw;--up:-41.4cqh;--dx2:33.0cqw;--down:36.4cqh;--r1:460deg;--r2:1104.0deg;--sx:-43.2cqw;--sy:-23.7cqh;--sr:173deg;animation-delay:0.14s}
.discontinued-card .confetti i:nth-child(21){background:#1877f2;width:7px;height:12px;--dx1:12.7cqw;--up:-37.0cqh;--dx2:19.7cqw;--down:42.8cqh;--r1:-340deg;--r2:-816.0deg;--sx:-4.3cqw;--sy:-43.5cqh;--sr:40deg;animation-delay:0.00s}
.discontinued-card .confetti i:nth-child(22){background:#f1c40f;width:9px;height:9px;--dx1:23.2cqw;--up:-35.0cqh;--dx2:35.9cqw;--down:34.8cqh;--r1:220deg;--r2:528.0deg;--sx:34.6cqw;--sy:16.7cqh;--sr:87deg;animation-delay:0.32s}
.discontinued-card .confetti i:nth-child(23){background:#9b5de5;width:7px;height:12px;--dx1:14.1cqw;--up:-31.8cqh;--dx2:21.9cqw;--down:41.2cqh;--r1:-380deg;--r2:-912.0deg;--sx:-18.5cqw;--sy:-3.1cqh;--sr:134deg;animation-delay:0.18s}
.discontinued-card .confetti i:nth-child(24){background:#e63946;width:7px;height:12px;--dx1:23.2cqw;--up:-28.9cqh;--dx2:35.9cqw;--down:33.2cqh;--r1:260deg;--r2:624.0deg;--sx:20.4cqw;--sy:-22.8cqh;--sr:1deg;animation-delay:0.04s}
.discontinued-card .confetti i:nth-child(25){background:#f4a261;width:9px;height:9px;--dx1:25.3cqw;--up:-34.4cqh;--dx2:39.2cqw;--down:39.6cqh;--r1:-420deg;--r2:-1008.0deg;--sx:-32.7cqw;--sy:-42.6cqh;--sr:48deg;animation-delay:0.36s}
.discontinued-card .confetti i:nth-child(26){background:#2a9d8f;width:7px;height:12px;--dx1:21.4cqw;--up:-23.6cqh;--dx2:33.2cqw;--down:31.6cqh;--r1:300deg;--r2:720.0deg;--sx:6.2cqw;--sy:17.6cqh;--sr:95deg;animation-delay:0.22s}
.discontinued-card .confetti i:nth-child(27){background:#1877f2;width:7px;height:12px;--dx1:25.0cqw;--up:-28.2cqh;--dx2:38.8cqw;--down:38.0cqh;--r1:-460deg;--r2:-1104.0deg;--sx:45.1cqw;--sy:-2.2cqh;--sr:142deg;animation-delay:0.09s}
.discontinued-card .confetti i:nth-child(28){background:#f1c40f;width:9px;height:9px;--dx1:32.6cqw;--up:-20.5cqh;--dx2:50.5cqw;--down:30.0cqh;--r1:340deg;--r2:816.0deg;--sx:-8.1cqw;--sy:-21.9cqh;--sr:9deg;animation-delay:0.40s}
.discontinued-card::before{content:"WOO HOO!!!";position:absolute;left:50%;top:50%;z-index:-1;transform:translate(-50%,-50%) rotate(-20deg);font-weight:900;font-size:clamp(1.3rem,5vw,2rem);line-height:1;letter-spacing:.04em;white-space:nowrap;color:currentColor;opacity:.1;pointer-events:none;user-select:none}
.discontinued-card .blink-zero{animation:zero-blink 3s ease-in-out infinite}
@keyframes zero-blink{0%,60%,100%{opacity:1}80%{opacity:0}}
.discontinued-note{font-weight:400}

