// Zooms 12-18

#buildings {
  [zoom=13][area>=10000],
  [zoom=14][area>=5000],
  [zoom=15][area>=2000],
  [zoom>=16] {
    polygon-fill: @buildings;
  }
  [zoom = 16] {
    line-color: @buildings_outline_16;
  }
  [zoom > 16] {
    line-color: @buildings_outline;
  }
  [zoom >= 18] {
    [osm_id = 140780178], // Madrid
    [osm_id = 279649784], // Brooklyn
    [osm_id = 260351411]  // Stamen
    {
      ::red {
        line-width:2;
        line-color: red;
        line-offset: -8;
      }
      ::orange {
        line-width:2;
        line-color: orange;
        line-offset: -6;
      }
      ::yellow {
        line-width:2;
        line-color: yellow;
        line-offset: -4;
      }
      ::green {
        line-width:2;
        line-color: green;
        line-offset: -2;
      }
      ::blue {
        line-width:2;
        line-color: blue;
      }
      ::purple {
        line-width:2;
        line-color: purple;
        line-offset: 2;
      }
      ::halo {
        line-width:4;
        line-color: @landmass_fill;
        line-offset: 5;
      }
    }
    // For multipolygons, we have to put the rainbow on the outside of the building
    /*
     * The Brooklyn office moved and is no longer a MP
    [osm_id = -3720805] // Brooklyn
    {
      polygon-clip: false;
      ::red {
        line-width:2;
        line-color: red;
        line-offset: 6;
      }
      ::orange {
        line-width:2;
        line-color: orange;
        line-offset: 5;
      }
      ::yellow {
        line-width:2;
        line-color: yellow;
        line-offset: 4;
      }
      ::green {
        line-width:2;
        line-color: green;
        line-offset: 3;
      }
      ::blue {
        line-width:2;
        line-color: blue;
        line-offset: 2;
      }
      ::purple {
        line-width:2;
        line-color: purple;
        line-offset: 1;
      }
      ::refill {
        // paint over any artifacts
        polygon-fill: @buildings;
      }
    }
    */
  }
}

