/* Beirut Municipal Elections 2016: self-hosted rebuild of the 111101 Tableau Public stories. */
.municipal-story{--ms-ink:#333;--ms-muted:#6b6b6b;--ms-rule:#d9d9d9;--ms-band:#f5f5f5;--ms-total:#ececec;--ms-tab:#ededed;--ms-tab-on:#cdcdcd;position:relative;box-sizing:border-box;max-width:1260px;margin:0 auto;padding:14px 22px 30px;background:#fff;color:var(--ms-ink);font:11px/1.45 Verdana,Arial,Helvetica,sans-serif}
.municipal-story *,.municipal-story *::before,.municipal-story *::after{box-sizing:border-box}
.municipal-story [hidden]{display:none!important}
.municipal-story .ms-head{position:relative;padding:0 64px;text-align:center}
.municipal-story .ms-title{margin:0;padding:2px 10px 3px;border:1px solid #9aa9c6;font:normal 19px/1.3 Arial,Helvetica,sans-serif;color:#333}
.municipal-story .ms-nav{display:flex;align-items:stretch;justify-content:center;gap:6px;margin:12px 0 18px}
.municipal-story .ms-arrow{flex:none;width:26px;border:0;background:none;color:#999;font:28px/1 Arial,sans-serif;cursor:pointer}
.municipal-story .ms-arrow:disabled{color:#ddd;cursor:default}
.municipal-story .ms-tabs{display:flex;gap:2px;overflow-x:auto;scrollbar-width:thin}
.municipal-story .ms-tab{flex:0 0 auto;width:118px;min-height:46px;padding:5px 9px;border:0;border-bottom:3px solid transparent;background:var(--ms-tab);color:#555;font:10px/1.35 Verdana,Arial,sans-serif;text-align:left;white-space:normal;cursor:pointer}
.municipal-story .ms-tab:hover{background:#e2e2e2}
.municipal-story .ms-tab[aria-selected="true"]{background:var(--ms-tab-on);border-bottom-color:#666;color:#111}
.municipal-story .ms-tab:focus-visible,.municipal-story .ms-arrow:focus-visible{outline:2px solid #1f77b4;outline-offset:1px}
.municipal-story .ms-panel{min-height:320px}
.municipal-story .ms-panel:focus{outline:none}
.municipal-story .ms-status{padding:40px 0;color:var(--ms-muted);text-align:center}
.municipal-story .ms-section{margin:0 0 34px}
.municipal-story .ms-heading{margin:0 0 3px;font:bold 13px/1.35 Arial,Helvetica,sans-serif;color:#222}
.municipal-story .ms-heading span{font-weight:normal}
.municipal-story .ms-note{margin:0 0 4px;color:#444;font:11px/1.45 Arial,Helvetica,sans-serif;white-space:pre-line}
.municipal-story .ms-credit{margin:2px 0 10px;color:var(--ms-muted);font:10px/1.4 Arial,Helvetica,sans-serif;white-space:pre-line}
.municipal-story .ms-prose{max-width:920px;margin:6px auto 0;font:12px/1.5 Arial,Helvetica,sans-serif;color:#333}
.municipal-story .ms-prose h2{margin:20px 0 2px;font:bold 13px Arial,Helvetica,sans-serif}
.municipal-story .ms-prose h2:first-child{margin-top:0;font-size:14px}
.municipal-story .ms-prose p{margin:0}
.municipal-story .ms-prose .ms-credit{margin-top:22px}
.municipal-story .ms-grid{display:grid;gap:28px 34px;align-items:start}
.municipal-story .ms-grid.two{grid-template-columns:repeat(auto-fit,minmax(min(100%,430px),1fr))}
.municipal-story .ms-grid.three{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}
.municipal-story .ms-grid.ids{grid-template-columns:max-content minmax(0,1fr)}
.municipal-story .ms-scroll{max-width:100%;overflow-x:auto;scrollbar-width:thin}
.municipal-story .ms-table{border-collapse:collapse;font:10.5px/1.3 Arial,Helvetica,sans-serif;font-variant-numeric:tabular-nums;color:#333}
.municipal-story .ms-table th,.municipal-story .ms-table td{padding:3px 7px;border-bottom:1px solid #eaeaea;white-space:nowrap}
.municipal-story .ms-table thead th{border-bottom:1px solid var(--ms-rule);color:#444;font-weight:normal;text-align:center;vertical-align:bottom}
.municipal-story .ms-table thead tr:last-child th{border-bottom-color:#bbb}
.municipal-story .ms-table th{font-weight:normal;text-align:left}
.municipal-story .ms-table td{text-align:right}
.municipal-story .ms-table [dir="rtl"]{text-align:right}
.municipal-story .ms-table .ms-measure{color:var(--ms-muted)}
.municipal-story .ms-table .ms-total>*{background:var(--ms-total);font-weight:bold}
.municipal-story .ms-table .ms-subtotal>*{font-weight:bold}
.municipal-story .ms-table .ms-grand>*{background:#e2e2e2;font-weight:bold;border-top:1px solid #bbb}
.municipal-story .ms-table .ms-band>*{background:var(--ms-band)}
.municipal-story .ms-table .ms-colgroup{border-left:1px solid var(--ms-rule)}
.municipal-story .ms-table .ms-sep{border-left:1px solid var(--ms-rule)}
.municipal-story .ms-filters{display:flex;flex-wrap:wrap;gap:14px 22px;margin:4px 0 12px}
.municipal-story .ms-filter{margin:0;padding:0;border:0;min-width:0;font:10px/1.5 Verdana,Arial,sans-serif}
.municipal-story .ms-filter legend,.municipal-story .ms-filter>span{display:block;margin:0 0 2px;padding:0;font-weight:bold;color:#444}
.municipal-story .ms-filter label{display:flex;align-items:center;gap:5px;cursor:pointer}
.municipal-story .ms-filter label.ms-all{color:#555}
.municipal-story .ms-filter input{margin:0}
.municipal-story .ms-filter select{max-width:240px;font:11px Verdana,Arial,sans-serif}
.municipal-story .ms-filter [dir="rtl"]{text-align:right}
.municipal-story .ms-mapwrap{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:14px;align-items:start}
.municipal-story .ms-mapwrap .ms-filters{display:block;margin:0}
.municipal-story .ms-mapwrap .ms-filter{display:block;margin-bottom:12px}
.municipal-story .ms-mapwrap .ms-filters{min-width:0}
.municipal-story .ms-mapwrap select{width:100%;max-width:100%}
.municipal-story .ms-mapwrap .ms-checks{max-height:230px;overflow:auto;padding-right:4px}
.municipal-story .ms-map{height:min(74vh,720px);min-height:420px;border:1px solid var(--ms-rule);background:#e9e9e9}
.municipal-story .ms-map .leaflet-tile-pane{filter:grayscale(1) contrast(.92) brightness(1.06)}
.municipal-story .ms-map-label{border:0;background:none;box-shadow:none;color:#222;font:bold 10px/1.15 Arial,Helvetica,sans-serif;text-align:center;text-shadow:0 0 2px #fff,0 0 2px #fff,0 0 3px #fff;white-space:nowrap;pointer-events:none}
.municipal-story .ms-map-label div{transform:translate(-50%,0)}
.municipal-story .ms-legend{margin-top:4px;font:10px/1.4 Verdana,Arial,sans-serif}
.municipal-story .ms-legend h3{margin:0 0 4px;text-align:left;font:bold 10px Verdana,Arial,sans-serif;color:#444}
.municipal-story .ms-legend ul{margin:0;padding:0;list-style:none}
.municipal-story .ms-legend li{display:flex;align-items:center;gap:6px;margin:1px 0}
.municipal-story .ms-legend ul.ms-inline{display:flex;flex-wrap:wrap;gap:2px 14px;margin-bottom:6px}
.municipal-story .ms-swatch{flex:none;width:10px;height:10px;border-radius:1px}
.municipal-story .ms-sizes svg{display:block;overflow:visible}
.municipal-story .ms-chart{display:block;overflow:visible;font:10px Arial,Helvetica,sans-serif}
.municipal-story .ms-chart text{fill:#444}
.municipal-story .ms-chart .ms-gridline{stroke:#eee}
.municipal-story .ms-chart [data-tip]{cursor:default}
.municipal-story .ms-chart [data-tip]:hover{opacity:.82}
.municipal-story .leaflet-tooltip .ms-tipbody{white-space:pre-line;font:11px/1.4 Arial,Helvetica,sans-serif}
.municipal-story .ms-tip{position:absolute;z-index:1200;max-width:260px;padding:6px 8px;border:1px solid #bbb;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#222;font:11px/1.4 Arial,Helvetica,sans-serif;white-space:pre-line;pointer-events:none}
.municipal-story .ms-foot{margin-top:26px;padding-top:8px;border-top:1px solid #eee;color:var(--ms-muted);font:10px/1.5 Verdana,Arial,sans-serif}
.municipal-story .ms-foot a{color:inherit}
@media (max-width:720px){
  .municipal-story{padding:10px 12px 24px}
  .municipal-story .ms-head{padding:0 0 22px}
  .municipal-story .ms-title{font-size:16px}
  .municipal-story .ms-mapwrap,.municipal-story .ms-grid.ids{grid-template-columns:1fr}
  .municipal-story .ms-mapwrap .ms-checks{max-height:150px}
  .municipal-story .ms-map{height:62vh;min-height:340px}
}
