meta 
{
    title: "Disaster damage assessment for color-blind";
    description: "Displays colored icons and fill colors, to show tagging of visible damage scale of structures and filled patterns for roof materials.";
/*  fr.description: "Affiche des icônes colorées et des couleurs de remplissage, pour montrer l'étiquetage de l'échelle des dommages visibles des structures et des motifs pour les matériaux de toiture.";
    es.description: "Muestra iconos de colores y colores de relleno, para mostrar el etiquetado de la escala de daños visibles de las estructuras y patrones de relleno para los materiales del techo.";
    pt.description: "Apresenta ícones coloridos e cores de preenchimento, para mostrar a marcação da escala de danos visíveis das estruturas e padrões preenchidos para materiais de cobertura.";
    pt_BR.description: "Apresenta ícones coloridos e cores de preenchimento, para mostrar a marcação da escala de danos visíveis das estruturas e padrões preenchidos para materiais de cobertura.";
*/
    version: "1.2_2025-04-25";
    author: "SeverinGeo";
    icon: "matrix-icons.png";
    link: "https://josm.openstreetmap.de/wiki/Styles/DisasterDamageAssessmentForColorBlind"; 
}
/* Adapted from jgc's style for HHI BAR damage assessment methodology: https://hhi.harvard.edu/publications/satellite-imagery-interpretation-guide-assessing-wind-disaster-damage-structures , adapted for OSM (mapcss style adapted from https://josm.openstreetmap.de/wiki/Styles/JP-Tsunami)
*/

node[damage=none] {icon-image: "colorblind-none-16.png"; icon-opacity: 0.7; icon-width:14;}
node[damage=minimal] {icon-image: "colorblind-minimal-16.png"; icon-opacity: 0.7; icon-width:14;}
node[damage=significant] {icon-image: "colorblind-significant-16.png"; icon-opacity: 0.7; icon-width:14;}
node[damage=complete] {icon-image: "colorblind-complete-16.png"; icon-opacity: 0.7; icon-width:14;}

area[damage=none]:closed {fill-opacity:0.3; width: 1.2; fill-color: #b8e186;}
area[damage=minimal]:closed {fill-opacity:0.3; width: 1.2; fill-color: #f7f7f7;}
area[damage=significant]:closed {fill-opacity:0.3; width: 1.2; fill-color: #f1b6da;}
area[damage=complete] {fill-opacity:0.3; fill-color: #d01c8b; z-index: 1;}

node[damage:Chido=none] {icon-image: "colorblind-none-16.png"; icon-opacity: 0.7; icon-width:14;}
node[damage:Chido=minimal] {icon-image: "colorblind-minimal-16.png"; icon-opacity: 0.7; icon-width:14;}
node[damage:Chido=significant] {icon-image: "colorblind-significant-16.png"; icon-opacity: 0.7; icon-width:14;}
node[damage:Chido=complete] {icon-image: "colorblind-complete-16.png"; icon-opacity: 0.7; icon-width:14;}

area[damage:Chido=none]:closed {fill-opacity:0.3; width: 1.2; fill-color: #b8e186;}
area[damage:Chido=minimal]:closed {fill-opacity:0.3; width: 1.2; fill-color: #f7f7f7;}
area[damage:Chido=significant]:closed {fill-opacity:0.3; width: 1.2; fill-color: #f1b6da;}
area[damage:Chido=complete] {fill-opacity:0.3; fill-color: #d01c8b; z-index: 1;}

way[roof:material=metal]:closed,
way[roof:material=metal_sheet]:closed
{ width: 1.5; color: black; dashes: 6,6;  }

way[roof:material=copper]:closed,
way[roof:material=eternit]:closed,
way[roof:material=glass]:closed,
way[roof:material=grass]:closed,
way[roof:material=gravel]:closed,
way[roof:material=roof_tiles]:closed,
way[roof:material=slate]:closed,
way[roof:material=stones]:closed,
way[roof:material=tar_paper]:closed,
way[roof:material=thatch]:closed,
way[roof:material=wood]:closed
{ width: 1.5; color: black; dashes: 20,5;  } 

way[roof:material=concrete]
{ width: 2; color: black;  }

/*way[!damage][roof:material] { text: eval("Damage ?"); text-color: #f30122; text-halo-color: white; font-size: 11; text-position: center; }*/
way[!roof:material][building!=construction][roof!=no][damage] { text: eval("Roof material ?"); text-color: #f30122; text-halo-color: white; font-size: 11; text-position: center; }
way[!roof:material][!damage][building] { width: 1.5; color: white; }
way[!roof:material][building!=construction][roof!=no][damage:Chido] { text: eval("Roof material ?"); text-color: #f30122; text-halo-color: white; font-size: 11; text-position: center; }
way[!roof:material][!damage:Chido][building] { width: 1.5; color: white; }

node|z1-19 { symbol-shape: square; symbol-stroke-color: rosybrown; symbol-fill-color: rosybrown; symbol-size: 1; z-index:1}
