:root{font-family:Arial,Helvetica,sans-serif;color:#193c31;background:#fff;font-synthesis:none;--green:#176348;--mint:#edf5f0;--ink:#183b30;--line:#dce6df;--muted:#596c63}*{box-sizing:border-box}body{margin:0;padding:12px;font-size:14px;line-height:1.5}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #b97919;outline-offset:3px}button{cursor:pointer}.widget{max-width:1300px;margin:auto;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 3px 14px #193c3108}.widget-header{border-top:4px solid var(--green);padding:20px 24px 16px;display:flex;gap:12px;align-items:center;justify-content:space-between}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-weight:700;font-size:10px;color:var(--green);margin:0 0 5px}.widget-header h1{font-size:23px;letter-spacing:-.6px;margin:0;line-height:1.2}.widget-header p.sub{margin:6px 0 0;font-size:13px;color:var(--muted)}.brand-mark{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;white-space:nowrap;color:var(--green)}.brand-mark svg{width:25px;height:25px}.filters{display:flex;flex-wrap:wrap;gap:10px;padding:14px 24px;background:#f6f9f7;border-block:1px solid var(--line);align-items:end}.field{display:flex;flex-direction:column;gap:4px;flex:1;min-width:125px}.field.search{flex:1.3}.field span{font-size:11px;font-weight:700;color:#405c4f}.field select,.field input{width:100%;height:38px;border:1px solid #bdcec3;border-radius:6px;padding:7px 9px;background:white;color:#193c31}.reset{height:38px;border:1px solid #bdcec3;border-radius:6px;background:#fff;color:var(--green);padding:0 12px}.content{padding:20px 24px;display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.section-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.section-top h2{font-size:14px;margin:0}.count{font-size:11px;color:var(--muted)}.incident-list{max-height:460px;overflow:auto;border:1px solid var(--line);border-radius:9px}.incident{width:100%;border:0;border-bottom:1px solid var(--line);background:white;text-align:left;padding:15px 14px;display:flex;gap:11px;color:var(--ink);line-height:1.45}.incident:last-child{border-bottom:0}.incident:hover{background:#f6f9f7}.dot{width:9px;height:9px;border-radius:50%;margin-top:5px;flex-shrink:0;background:#667b70}.dot.high,.dot.critical{background:#bc4137}.dot.medium{background:#ad740f}.incident-copy{flex:1;min-width:0}.incident-title{display:block;font-size:13px;margin-bottom:6px}.incident-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;color:var(--muted);margin-bottom:8px}.meta{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.tag{font-weight:700;border:1px solid #d9e4dc;background:#f3f7f4;border-radius:4px;padding:2px 6px;color:#3d594a}.arrow{align-self:center;color:var(--green)}.map{height:408px;background:#edf2ee;border:1px solid var(--line);border-radius:9px;isolation:isolate}.legend{display:flex;flex-wrap:wrap;gap:14px;margin:8px 0 0;font-size:10px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:5px}.legend .dot{margin:0;width:7px;height:7px}.map-fallback{padding:24px;color:#415d50;font-size:13px}.map-note{font-size:11px;color:var(--muted);margin:7px 0 0}.widget-footer{border-top:1px solid var(--line);padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);flex-wrap:wrap}.widget-footer a{font-size:11px;color:var(--green);font-weight:700;text-decoration:none}.widget-footer a:hover{text-decoration:underline}.notice{padding:9px 24px;background:#fff6e5;color:#795108;font-size:11px;border-bottom:1px solid #eedcb8}.status{padding:22px;color:var(--muted);font-size:13px}.status button{display:block;margin-top:12px}.layout-compact{max-width:650px}.layout-compact .widget-header{padding:16px 18px 13px}.layout-compact .widget-header h1{font-size:20px}.layout-compact .brand-mark{display:none}.layout-compact .filters{padding:12px 18px}.layout-compact .content{display:block;padding:16px 18px}.layout-compact .map-panel{display:none}.layout-compact .incident-list{max-height:420px}.layout-compact .incident{padding:13px 12px}.layout-compact .incident-description{display:none}.layout-compact .widget-footer{padding:12px 18px}.layout-map .content{grid-template-columns:1fr}.layout-map .map-panel{grid-row:1}.layout-map .map{height:380px}.layout-map .incident-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:230px}.layout-map .incident{border-right:1px solid var(--line)}.layout-map .incident-description{display:none}dialog{border:1px solid var(--line);border-radius:12px;padding:26px;max-width:540px;width:calc(100% - 32px);color:var(--ink);line-height:1.6}dialog::backdrop{background:#102d2466}dialog h2{font-size:19px;padding-right:30px}dialog p{font-size:14px}dialog .close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:24px;color:var(--ink)}.button-link{display:inline-block;background:var(--green);color:white;padding:10px 15px;border:0;border-radius:6px;text-decoration:none}.leaflet-container{font-family:Arial,Helvetica,sans-serif}.leaflet-control-attribution{font-size:9px!important}
@media(max-width:680px){body{padding:8px}.brand-mark{display:none}.widget-header{padding:16px}.widget-header h1{font-size:21px}.filters{padding:12px 16px;gap:8px}.content{display:flex;flex-direction:column;padding:16px;gap:20px}.content>section{width:100%}.map{height:300px}.incident-list{max-height:380px}.widget-footer{padding:12px 16px}.layout-map .content{display:flex}.layout-map .map-panel{order:-1}.layout-map .map{height:300px}.layout-map .incident-list{display:block;max-height:300px}.field.search{flex-basis:100%}.notice{padding-inline:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Compact collection v2: bounded content, with room to expand on demand. */
body{padding:8px}.widget{height:500px;display:flex;flex-direction:column}.widget:has(.notice){height:526px}.widget-header{padding:12px 18px;flex:none}.widget-header h1{font-size:20px;letter-spacing:-.4px}.widget-header p.sub{display:none}.eyebrow{margin-bottom:3px;font-size:9px}.header-actions{display:flex;align-items:center;gap:14px}.size-toggle{border:1px solid #bdcec3;background:#fff;border-radius:5px;padding:6px 9px;font-size:11px;color:var(--green);white-space:nowrap}.filters{padding:9px 18px;gap:8px;flex:none}.field{min-width:110px;gap:3px}.field select,.field input,.reset{height:33px;padding:5px 8px;font-size:12px}.field span{font-size:10px}.content{padding:12px 18px;flex:1;min-height:0;gap:14px;align-items:stretch;overflow:hidden}.list-panel,.map-panel{min-height:0;display:flex;flex-direction:column}.section-top{flex:none;margin-bottom:7px}.section-top h2{font-size:12px}.count{font-size:10px}.incident-list{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior-y:contain;scrollbar-width:thin}.incident{padding:10px 11px;gap:9px}.incident-title{font-size:12px;margin-bottom:4px}.incident-description{display:none}.meta{font-size:10px;gap:5px}.map{flex:1;min-height:100px;height:auto}.legend{flex:none;font-size:9px;gap:10px;margin-top:5px}.map-note{flex:none;font-size:10px;line-height:1.3;margin:5px 0 0}.widget-footer{flex:none;padding:9px 18px;font-size:10px}.notice{padding:5px 18px;font-size:10px;line-height:16px;flex:none}.layout-compact{height:380px}.layout-compact:has(.notice){height:406px}.layout-compact .widget-header{padding:12px 16px}.layout-compact .filters{padding:9px 16px}.layout-compact .content{display:flex;padding:12px 16px}.layout-compact .list-panel{width:100%}.layout-compact .incident-list{max-height:none}.layout-compact .incident{padding:10px 11px}.layout-compact .widget-footer{padding:9px 16px}.layout-map{height:540px}.layout-map:has(.notice){height:566px}.layout-map .content{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(140px,1fr) 114px;gap:12px}.layout-map .map-panel{grid-row:1}.layout-map .map{height:auto}.layout-map .incident-list{max-height:none;grid-template-columns:repeat(3,minmax(0,1fr))}.layout-map .map-note{display:none}.mobile-views{display:none}.widget.is-expanded{height:780px}.widget.is-expanded .incident-description{display:-webkit-box}.widget.is-expanded.layout-map .content{grid-template-rows:minmax(160px,1fr) 230px}.widget.is-expanded.layout-compact{height:620px}
@media(max-width:680px){.widget,.widget:has(.notice){height:500px}.widget:has(.notice){height:526px}.widget-header,.layout-compact .widget-header{padding:11px 13px}.widget-header h1,.layout-compact .widget-header h1{font-size:18px}.header-actions{gap:0}.size-toggle{font-size:10px;padding:5px 7px}.filters,.layout-compact .filters{padding:8px 13px;gap:7px}.field{flex-basis:calc(50% - 7px);min-width:0}.field.search{flex:1;min-width:100px}.field.search span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.reset{align-self:end}.content,.layout-compact .content,.layout-map .content{display:flex;flex-direction:column;padding:10px 13px;gap:0}.content>section{flex:1;min-height:0}.mobile-views{display:flex;gap:4px;padding:8px 13px 0;flex:none}.mobile-views button{flex:1;background:#f1f6f2;border:1px solid var(--line);color:var(--green);border-radius:5px;font-size:12px;padding:6px}.mobile-views button[aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}.widget[data-view=list] .map-panel{display:none}.widget[data-view=map] .list-panel{display:none}.map,.layout-map .map{height:auto;min-height:100px}.layout-map .map-panel{order:0}.layout-map .incident-list{display:block;max-height:none}.layout-map .map-note{display:block}.layout-compact,.layout-compact:has(.notice){height:400px}.layout-compact:has(.notice){height:426px}.layout-compact .mobile-views{display:none}.widget-footer,.layout-compact .widget-footer{padding:8px 13px;font-size:9px;gap:4px}.widget-footer a{font-size:10px}.notice{padding:5px 13px;font-size:9px}.widget.is-expanded,.widget.is-expanded:has(.notice){height:740px}.widget.is-expanded.layout-compact{height:620px}}

/* Official LBPA logo, with its original proportions and colours. */
.brand-mark .lbpa-official-logo{display:block;width:145px;height:auto;max-width:100%;object-fit:contain}.layout-compact .brand-mark{display:flex}.layout-compact .brand-mark .lbpa-official-logo{width:115px}
@media(max-width:680px){.brand-mark,.layout-compact .brand-mark{display:none}}

/* Toronto-wide attribution header used by all three widget layouts. */
.header-copy{flex:1;min-width:0}
.widget-header .eyebrow{font-size:11px;letter-spacing:.12em;margin:0 0 2px}
.header-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}
.brand-credit{border-left:1px solid var(--line);padding-left:18px;color:var(--ink);font-size:12px;font-weight:400;white-space:nowrap}
.brand-mark,.layout-compact .brand-mark{display:flex!important;align-items:center;flex-shrink:0}
.brand-mark .lbpa-official-logo{width:145px}
.layout-compact .brand-mark .lbpa-official-logo{width:115px}
@media(max-width:680px){
 .widget-header,.layout-compact .widget-header{flex-wrap:wrap;align-items:center;gap:10px;padding:11px 13px}
 .header-copy{flex:1 1 auto}
 .widget-header h1,.layout-compact .widget-header h1{font-size:18px}
 .header-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end}
 .brand-credit{padding-left:10px;font-size:10px}
 .brand-mark,.layout-compact .brand-mark{display:flex!important}
 .brand-mark .lbpa-official-logo{width:clamp(78px,26vw,120px)}
 .layout-compact .brand-mark .lbpa-official-logo{width:clamp(78px,26vw,112px)}
}
@media(max-width:420px){
 .header-actions{width:100%;justify-content:space-between}
 .size-toggle{margin-left:auto}
}
