/* City trends (docs/TRENDS.md): FBI reported crime and use of force on the Police tab, the Transit, Housing & jobs and City trends
   pages, and the home page's monthly row. Builds on civic.css (cv-*, nb-*). Categorical series (transit services, the three
   unemployment lines) use one validated palette for light and dark; ordered series (force levels, building sizes) use one hue light to dark. */
:root{--tw-crime:#6250D6;--tw-uof1:#F2AFC8;--tw-uof2:#D6608E;--tw-uof3:#962A57;--tw-ok:#2E8F6B;--tw-s1:#2A78D6;--tw-s2:#EB6834;--tw-s3:#1BAF7A;
  --tw-p1:#A8D392;--tw-p2:#5DA64A;--tw-p3:#2B6E30;--tw-ev:#B8452A;--tw-transit:var(--tw-s1);--tw-housing:var(--tw-p2);--tw-jobs:#8A6A2E}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--tw-crime:#9085E9;--tw-uof1:#6E2E49;--tw-uof2:#B84C7A;--tw-uof3:#EE95B9;--tw-ok:#3FA982;
  --tw-s1:#3987E5;--tw-s2:#D95926;--tw-s3:#199E70;--tw-p1:#2F5F2B;--tw-p2:#4F9A43;--tw-p3:#A3D68E;--tw-ev:#E07455;--tw-jobs:#C9A35C}}
:root[data-theme="dark"]{--tw-crime:#9085E9;--tw-uof1:#6E2E49;--tw-uof2:#B84C7A;--tw-uof3:#EE95B9;--tw-ok:#3FA982;
  --tw-s1:#3987E5;--tw-s2:#D95926;--tw-s3:#199E70;--tw-p1:#2F5F2B;--tw-p2:#4F9A43;--tw-p3:#A3D68E;--tw-ev:#E07455;--tw-jobs:#C9A35C}

.uof-fold{margin:22px 0 0}.uof-fold>summary{cursor:pointer;padding:10px 0;font-size:14px;border-top:1px solid rgba(128,128,128,.35)}.uof-fold .nb-sec.tw-uof{border-top:0}
.tw-crime{--cv-c:var(--tw-crime)}.tw-uof{--cv-c:var(--tw-uof2)}.tw-permits{--cv-c:var(--tw-p2)}.tw-jobs{--cv-c:var(--tw-jobs)}.tw-ev{--cv-c:var(--tw-ev)}
.nb-sec.tw-crime,.nb-sec.tw-permits,.nb-sec.tw-jobs,.nb-sec.tw-ev{border-top:4px solid var(--cv-c)}
.nb-sec .tiles{margin:4px 0 16px;border-radius:12px;overflow:hidden}
.tw-c{margin-top:4px}
.nb-sec.tw-crime .cv-scroll,.nb-sec.tw-permits .cv-scroll,.nb-sec.tw-jobs .cv-scroll{margin-top:16px}
.tw-seg{margin:0 0 12px}
.tw-seg .chip{padding:6px 12px;font-size:12.5px}
.tw-fine{font-size:12px;color:var(--ink-3);margin:8px 0 0;line-height:1.45;max-width:80ch}
.tw-empty{font-size:13.5px;color:var(--ink-2);margin:0;line-height:1.55;max-width:70ch}
.tw-tbl tr[data-fo]{cursor:pointer}.tw-tbl tr[data-fo]:hover td{background:var(--surface)}
.tw-ind{display:inline-block;width:12px}
.tw-sw{display:inline-block;width:10px;height:10px;border-radius:3px;background:var(--c);margin-right:7px;vertical-align:-1px}
/* legend: always present for two or more series */
.tw-leg{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0 0 10px;font-size:12px;color:var(--ink-2)}
.tw-leg span{display:inline-flex;align-items:center;gap:6px}
.tw-leg i{width:12px;height:12px;border-radius:3px;background:var(--c)}
/* stacked columns: first series at the bottom, a 2px surface line between segments, rounded top */
.tw-stack .c{flex-direction:column-reverse;justify-content:flex-start;align-items:center}
.tw-stack .c i{width:100%;max-width:24px;border-radius:0;background:var(--c);box-shadow:inset 0 2px 0 var(--raised);min-height:0}
.tw-stack .c i:first-child{box-shadow:none}
.tw-stack .c i:last-child{border-radius:4px 4px 0 0}
.cv-cols .c[data-f] i{opacity:.42}
/* month labels under a chart */
.tw-axis{display:flex;gap:2px;padding:4px 34px 0 0;font:500 10.5px/1.2 var(--body);color:var(--ink-3);font-variant-numeric:tabular-nums}
.tw-axis span{flex:1 1 0;min-width:1px;white-space:nowrap;overflow:visible}
/* lines */
.tw-linebox{position:relative;height:var(--h,170px);padding-right:34px;box-sizing:border-box;border-bottom:1px solid var(--cv-grid)}
.tw-linebox .tick{position:absolute;left:0;right:0;border-top:1px solid var(--cv-grid);pointer-events:none}
.tw-linebox .tick span{position:absolute;right:0;top:-7px;font:500 10.5px/1 var(--body);color:var(--ink-3);font-variant-numeric:tabular-nums}
.tw-plot{position:relative;height:100%}
.tw-plot svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.tw-plot path{fill:none;stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
.tw-plot rect.h{fill:transparent;cursor:default}
.tw-plot rect.h:hover{fill:color-mix(in srgb,var(--ink) 7%,transparent)}
.tw-dot{position:absolute;width:8px;height:8px;border-radius:50%;background:var(--c);transform:translate(-50%,-50%);box-shadow:0 0 0 2px var(--raised);pointer-events:none}
/* pages */
.tw-main{padding-bottom:56px}
.tw-main #app>.tiles{margin-top:16px;border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow)}
.tw-jump{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
.tw-jump a{font:700 12.5px var(--disp);color:var(--ink-2);background:var(--raised);box-shadow:var(--shadow);border-radius:999px;padding:7px 13px;text-decoration:none}
.tw-jump a:hover{color:var(--ink);background:var(--lime-2)}
/* the City trends cards and the home page's monthly row share the tile look of home.css (.hm-k) */
.tw-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}
.tw-k-crime{--cv-c:var(--tw-crime)}.tw-k-transit{--cv-c:var(--tw-transit)}.tw-k-housing{--cv-c:var(--tw-housing)}.tw-k-jobs{--cv-c:var(--tw-jobs)}.tw-k-ev{--cv-c:var(--tw-ev)}
.hm-trend{grid-template-columns:repeat(3,minmax(0,1fr))}   /* ABQ RIDE, new housing, unemployment (the FBI tile moved to its own page) */
.tw-sub{font-size:13px;color:var(--ink-3);margin:22px 0 0}
.tw-sub a{color:var(--ink-2)}
.tw-wip{margin:0 0 16px;padding:12px 16px;background:var(--surface);border-left:4px solid var(--tw-crime);border-radius:10px;font-size:13.5px;line-height:1.5;color:var(--ink-2)}   /* the calm "In progress" banner on /fbi.html */
.tw-wip b{color:var(--ink)}
@media(max-width:1060px){.tw-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.hm-trend{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){.tw-cards{grid-template-columns:minmax(0,1fr)}.tw-axis{font-size:9.5px}}
@media(max-width:380px){.hm-trend{grid-template-columns:minmax(0,1fr)}}
@media (forced-colors:active){.tw-stack .c i,.tw-leg i,.tw-sw{forced-color-adjust:none}}

/* ---- City trends refresh (docs/TRENDS.md): "What moved most" on top, then one section per department. Every colour is a token with a dark value. ---- */
:root{--tw-solar:#D69A10;--tw-wind:#4C86C6}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--tw-solar:#E7B93E;--tw-wind:#6AA6E6}}
:root[data-theme="dark"]{--tw-solar:#E7B93E;--tw-wind:#6AA6E6}
.tw-fresh{margin:0 0 4px}
.tw2{display:block;margin-top:14px}
.tw2-top{background:var(--raised);border-radius:14px;box-shadow:var(--shadow);padding:18px 20px 16px;min-width:0}
.tw2-th{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:8px 18px;margin-bottom:14px}
.tw2-th h2{font:800 19px var(--disp);letter-spacing:-.015em;margin:0;color:var(--ink)}
.tw2-th p{margin:4px 0 0;font-size:12.5px;color:var(--ink-2);max-width:70ch;line-height:1.45}
.tw2-key{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;font-size:11.5px;color:var(--ink-2)}
.tw2-key span{display:inline-flex;align-items:center;gap:6px}
.tw2-key i{width:10px;height:10px;border-radius:3px;background:var(--cv-up);flex:none}
.tw2-key i.dn{background:var(--cv-down)}
.tw2-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 36px}
.tw2-two.one{grid-template-columns:minmax(0,1fr)}
.tw2-mc{min-width:0}
.tw2-col{font:700 11.5px var(--disp);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2);margin:0 0 4px}
.tw2-rows{list-style:none;margin:0;padding:0}
.tw2-r{display:grid;grid-template-columns:10px minmax(0,1fr) minmax(110px,1.1fr) 66px;gap:4px 12px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.tw2-r:first-child{border-top:0}
.tw2-sq{display:inline-block;width:10px;height:10px;border-radius:3px;background:var(--sec,var(--ink-3));flex:none}
.tw2-rl{min-width:0}
.tw2-rl a{font:700 13.5px/1.25 var(--disp);color:var(--ink);text-decoration:none}
.tw2-rl a:hover,.tw2-rl a:focus-visible{text-decoration:underline}
.tw2-rl small{display:block;font-size:11.5px;color:var(--ink-2);margin-top:2px;line-height:1.35}
.tw2-rb{position:relative;height:16px}
.tw2-rb::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--line-strong)}
.tw2-rb i{position:absolute;top:3px;height:10px;min-width:2px}
.tw2-rb i.up{left:50%;background:var(--cv-up);border-radius:0 4px 4px 0}
.tw2-rb i.dn{right:50%;background:var(--cv-down);border-radius:4px 0 0 4px}
.tw2-rb.none::before{display:none}
.tw2-rb.none small{font-size:11px;color:var(--ink-3)}
.tw2-rv{font:800 15px var(--disp);font-variant-numeric:tabular-nums;color:var(--ink);text-align:right;white-space:nowrap}
.tw2-note{margin:10px 0 0;padding:10px 12px;background:var(--surface);border-radius:10px;font-size:12.5px;line-height:1.5;color:var(--ink-2)}
.tw2-sec{margin-top:30px}
.tw2-dh{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.tw2-dh .sec-badge{flex:none;width:28px;height:28px;border-radius:8px;background:var(--sec);color:var(--cw-glyph);display:grid;place-items:center}
.tw2-dh .sec-badge svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tw2-dt{min-width:0}
.tw2-dl{display:block;font:700 11.5px/1.2 var(--disp);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.tw2-dh h2{font:800 20px var(--disp);letter-spacing:-.015em;margin:2px 0 0;color:var(--ink)}
.tw2-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:14px}
.tw2-card{display:flex;flex-direction:column;gap:4px;background:var(--raised);border-radius:14px;box-shadow:var(--shadow);padding:16px 18px 14px;color:var(--ink);text-decoration:none;min-width:0;box-sizing:border-box;transition:transform .15s,box-shadow .15s}
a.tw2-card:hover{transform:translateY(-1px);box-shadow:0 2px 4px rgba(22,50,35,.06),0 10px 26px rgba(22,50,35,.1)}
a.tw2-card:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.tw2-h{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tw2-h h3{display:flex;align-items:center;gap:8px;font:800 15px var(--disp);margin:0;color:var(--ink);min-width:0}
.tw2-chip{flex:none;font:700 11px var(--disp);color:var(--ink-2);background:var(--surface);border-radius:999px;padding:3px 10px;white-space:nowrap}
.tw2-big{font:800 34px/1.08 var(--disp);letter-spacing:-.025em;font-variant-numeric:tabular-nums;color:var(--ink);margin-top:2px}
.tw2-l{margin:0;font-size:12.5px;line-height:1.5;color:var(--ink-2)}
.tw2-ch{margin-top:auto;padding-top:10px}
.tw2-src{margin:0;padding-top:8px;font-size:11px;color:var(--ink-3)}
.tw2-bars{display:flex;align-items:stretch;gap:2px;height:var(--h,96px);border-bottom:1px solid var(--cv-grid);box-sizing:border-box}
.tw2-bars .b{position:relative;flex:1 1 0;min-width:1px;display:flex;flex-direction:column-reverse;justify-content:flex-start;cursor:default}
.tw2-bars .b i{display:block;width:100%;opacity:.55;box-shadow:inset 0 2px 0 var(--raised)}
.tw2-bars .b i:first-child{box-shadow:none}
.tw2-bars .b i:last-of-type{border-radius:3px 3px 0 0}
.tw2-bars .b.cur i,.tw2-bars .b:hover i{opacity:1}
.tw2-bars .b u{position:absolute;left:50%;width:2px;margin-left:-1px;height:7px;background:var(--ink);border-radius:1px}
.tw2-ends{display:flex;justify-content:space-between;padding-top:4px;font:500 10.5px/1.2 var(--body);color:var(--ink-3);font-variant-numeric:tabular-nums}
.tw2-ch .tw-linebox+.tw2-ends{padding-right:34px}
.tw2-leg{display:flex;flex-wrap:wrap;gap:3px 14px;margin:0 0 8px;font-size:11.5px;color:var(--ink-2)}
.tw2-leg span{display:inline-flex;align-items:center;gap:6px}
.tw2-leg b{color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}
.tw2-leg .sw{width:10px;height:10px;border-radius:3px;flex:none}
.tw2-leg u{width:2px;height:10px;background:var(--ink);border-radius:1px;text-decoration:none;flex:none}
.tw2-ln{display:inline-block;width:20px;height:0;border-top:2px solid var(--c);flex:none}
.tw2-ln.thick{border-top-width:3px}
.tw2-ln.dash{border-top-style:dashed}
.tw2-ln.dot{border-top-style:dotted;border-top-width:3px}
.tw2-fine{margin:6px 0 0;font-size:11.5px;color:var(--ink-3);line-height:1.4}
.tw2-wide{grid-column:1/-1}
.tw2-wc{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);gap:10px 32px;align-items:end}
.tw2-wl{display:flex;flex-direction:column;gap:4px;min-width:0}
.tw2-wr{min-width:0}
.tw2-mini{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:10px 14px;margin-top:10px}
.tw2-mini div{display:flex;flex-direction:column;gap:1px;min-width:0}
.tw2-mini .k{font:700 11px/1.3 var(--disp);color:var(--ink-2)}
.tw2-mini b{font:800 20px/1.15 var(--disp);font-variant-numeric:tabular-nums;color:var(--ink)}
.tw2-mini small{font-size:11.5px;color:var(--ink-2);line-height:1.35}
.tw2-lock{background:color-mix(in srgb,var(--cv-acs) 7%,var(--raised))}
.tw2-lockn{display:flex;align-items:center;gap:10px;font-size:26px}
.tw2-lockn svg{width:24px;height:24px;fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
@media(max-width:760px){.tw2-two{grid-template-columns:minmax(0,1fr)}.tw2-wc{grid-template-columns:minmax(0,1fr)}}
@media(max-width:520px){.tw2-top{padding:16px 14px}.tw2-r{grid-template-columns:10px minmax(0,1fr) auto}.tw2-rv{grid-column:3;grid-row:1}.tw2-rb{grid-column:2/-1;grid-row:2}.tw2-big{font-size:30px}.tw2-card{padding:14px 14px 12px}}
@media (prefers-reduced-motion:reduce){a.tw2-card{transition:none}}
@media (forced-colors:active){.tw2-bars .b i,.tw2-sq,.tw2-key i,.tw2-leg .sw,.tw2-rb i{forced-color-adjust:none}}
