/* Gateway to Fremont: the home page district map (home-district-map.js).
   The home page carries the site builder's own styles and does not set .sb on <body>, so every rule here is
   scoped under .gw-map and names its own fonts and colours. Tokens (--teal-deep, --display ...) come from theme.css.
   theme-builder.css sets the font and colour of every p, span and heading inside .page-inner with a
   two-class selector, so the rules that must differ from it start with the section's id. */
.gw-map{background:var(--sand);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.5;padding:34px 60px 30px;text-align:left}
.gw-map *{box-sizing:border-box}
.gw-map__symbols{position:absolute;width:0;height:0}
.gw-map__in{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:10fr 17fr;grid-template-rows:auto 1fr;column-gap:40px;align-items:start}
.gw-map__txt{grid-column:1;grid-row:1;min-width:0}
.gw-map__side{grid-column:1;grid-row:2;min-width:0}
.gw-map__pic{grid-column:2;grid-row:1 / span 2;min-width:0}

#gateway-district-map .gw-map__h{margin:0;font-family:var(--display);font-size:60px;font-weight:800;line-height:1.05;letter-spacing:-.03em;color:var(--teal-deep);text-transform:none}
.gw-map__lead{font-size:18.5px;color:var(--ink-soft);max-width:520px;margin:12px 0 0}

.gw-map__chips{display:flex;flex-wrap:wrap;gap:10px 9px;margin-top:16px}
.gw-map__chips[hidden]{display:none}
.gw-map__chip{font:600 15px var(--body);line-height:1.5;margin:0;padding:9px 17px;border:0;cursor:pointer;background:#fff;color:var(--teal-deep);box-shadow:inset 0 0 0 1.5px var(--teal);border-radius:999px 999px 999px 6px}
.gw-map__chip:nth-child(even){border-radius:999px 999px 6px 999px;transform:rotate(1.5deg)}
.gw-map__chip:nth-child(3n){transform:rotate(-2deg)}
.gw-map__chip[aria-pressed="true"]{background:var(--teal-deep);color:#fff;box-shadow:none}
.gw-map__chip--live[aria-pressed="false"]{box-shadow:inset 0 0 0 1.5px var(--bloom);color:var(--bloom-deep)}
.gw-map__chip--live[aria-pressed="true"]{background:var(--bloom)}
.gw-map__chip:focus-visible,.gw-map__row:focus-visible,.gw-map__full:focus-visible,.gw-map__more:focus-visible{outline:3px solid var(--pollen);outline-offset:2px}

.gw-map__svg{display:block;width:100%;height:auto;touch-action:manipulation}
.gw-map__svg text{font-family:var(--body);font-weight:700}
.gw-map__svg .gw-map__dl{paint-order:stroke;stroke-linejoin:round}
.gw-map__svg .gw-map__hd{font-family:var(--hand);font-weight:700}
.gw-map__svg a{cursor:pointer}
.gw-map__dist{transition:opacity .15s}
.gw-map__dist.hi,.gw-map__d:focus-visible .gw-map__dist{stroke:var(--night);stroke-width:2.5;stroke-dasharray:none}
.gw-map__d:focus-visible{outline:none}
.gw-map__svg .off{opacity:.36}

#gateway-district-map .gw-map__tally{font-size:14.5px;font-weight:600;color:var(--ink);margin:18px 0 0}
.gw-map__tally b{font-family:var(--display);font-size:19px;color:var(--teal-deep)}
.gw-map__rows{margin:10px 0 0;border-bottom:1px dashed #d9c3b3}
.gw-map__row{display:block;color:inherit;text-decoration:none;border-top:1px dashed #d9c3b3;padding:6px 10px 6px 8px;border-radius:10px}
.gw-map__row.hi,.gw-map__row:hover{background:#fff}
.gw-map__rt{display:flex;align-items:center;gap:8px}
.gw-map__sw{flex:none;width:11px;height:11px;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(28,122,118,.55)}
#gateway-district-map .gw-map__rn{font-weight:700;font-size:14.5px;color:var(--night)}
#gateway-district-map .gw-map__rc{margin-left:auto;font-family:var(--display);font-weight:700;font-size:15px;color:var(--teal-deep)}
.gw-map__rp{display:block;font-size:13px;line-height:1.35;color:var(--ink-soft);padding-left:19px}
/* The working downtown districts: their own label, quieter than the hotspots, and the legend's dashed outline. */
#gateway-district-map .gw-map__grp{font-size:12.5px;line-height:1.4;color:var(--ink-soft);margin:14px 0 0}
#gateway-district-map .gw-map__grp b{display:block;font-size:13px;font-weight:700;color:var(--teal-deep)}
.gw-map__rows--work{margin-top:6px}
.gw-map__sw--work{background:#fff;box-shadow:none;border:1.5px dashed var(--teal)}
.gw-map__more{font:700 14px var(--body);line-height:1.5;margin:12px 0 0;padding:8px 16px;border:0;cursor:pointer;background:#fff;color:var(--teal-deep);box-shadow:inset 0 0 0 1.5px var(--teal);border-radius:999px 999px 999px 6px}
.gw-map__un{font-size:12.5px;color:var(--ink-soft);margin:9px 0 0}

.gw-map__legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;font-size:13px;color:var(--ink-soft);margin-top:8px}
.gw-map__legend span{display:inline-flex;align-items:center;gap:7px}
.gw-map__legend svg{flex:none}
.gw-map__attrib{font-size:12px;color:var(--ink-soft);margin:6px 0 0}
#gateway-district-map .gw-map__attrib a{color:inherit;text-decoration:underline}
.gw-map__full{display:inline-block;margin-top:12px;font:700 15px var(--body);line-height:1.5;padding:10px 20px;background:var(--bloom);color:#fff;text-decoration:none;border-radius:999px 999px 6px 999px}

/* One column: the heading and chips, then the map, then the district list. home-district-map.js draws the
   bigger-label map at this same width. */
@media(max-width:1000px){
  .gw-map{padding:26px 20px 24px}
  .gw-map__in{display:block}
  #gateway-district-map .gw-map__h{font-size:38px}
  .gw-map__lead{font-size:15.5px;margin-top:8px}
  .gw-map__chip{font-size:13.5px;padding:8px 14px}
  .gw-map__pic{max-width:560px;margin:12px auto 0}
  .gw-map__side{margin-top:4px}
  .gw-map__legend{font-size:12px;gap:5px 14px}
}
@media(max-width:600px){
  .gw-map__pic{margin:12px -12px 0}
}
