/* Jeden nagłówek akordeonu dla całego raportu. Stan zmienia badge i ikonę,
   nie konstrukcję ani obramowanie karty. */
body.has-map-shell .ig-truth-sources details.ig-truth-card{
  border-left-width:1px!important;
  border-color:#d4ddd6!important;
  box-shadow:none!important;
}

body.has-map-shell .ig-truth-sources details.ig-truth-card .ig-truth-card__icon{
  color:#176f45!important;
  background:#f1f3f1!important;
}

body.has-map-shell .ig-truth-sources details.ig-truth-card .ig-truth-card__icon svg{
  width:28px;
  height:28px;
}

body.has-map-shell .ig-truth-sources details.ig-truth-card .ig-truth-card__label{
  display:flex;
  align-items:center;
  gap:7px;
  color:#17251c;
  font-size:15px;
  font-weight:850;
  line-height:1.2;
  letter-spacing:-.01em;
  text-transform:none;
  text-wrap:pretty;
}

/* Starsze znaczniki były generowane przez ::after; teraz status jest jednym,
   opisanym elementem DOM i może zmienić się po pobraniu źródła. */
body.has-map-shell .ig-truth-sources details.ig-truth-card .ig-truth-card__label::after{
  content:none!important;
  display:none!important;
}

body.has-map-shell .ig-truth-card__status{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  flex:0 0 18px;
  border-radius:50%;
  color:#fff;
  background:#758078;
  font-size:12px;
  font-weight:900;
  line-height:1;
}
body.has-map-shell .ig-truth-card__status--warn{color:#4b3400;background:#f0b429}
body.has-map-shell .ig-truth-card__status--info{color:#315343;background:#dcebe2}
body.has-map-shell .ig-truth-card__status--no{background:#c63d3d}
body.has-map-shell .ig-truth-card__status--unknown{background:#758078}
body.has-map-shell .ig-truth-card__status--loading{color:#48554d;background:#dce3de}

body.has-map-shell details.ig-truth-card:is([data-truth-section="plan_general"],[data-truth-section="lockers"],[data-truth-section="facilities"],[data-truth-section="transport"]) .ig-truth-card__value{
  color:#23362a;
  font-size:14px;
  font-weight:500;
  line-height:1.4;
  text-wrap:pretty;
}

body.has-map-shell .ig-truth-section-result{
  margin:0 0 10px;
  color:#26372d;
  line-height:1.5;
  text-wrap:pretty;
}

body.has-map-shell .ig-forest-distance dl{
  display:grid;
  margin:0 0 10px;
  border:1px solid #d8e0d9;
  border-radius:10px;
  overflow:hidden;
}
body.has-map-shell .ig-forest-distance dl>div{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding:10px 11px;
  background:#fafbfa;
}
body.has-map-shell .ig-forest-distance dt{
  color:#66746c;
  font-size:11px;
  font-weight:800;
}
body.has-map-shell .ig-forest-distance dd{
  margin:0;
  color:#173322;
  font-size:14px;
  font-weight:850;
}
body.has-map-shell .ig-forest-distance p{
  margin:0 0 12px;
  color:#526159;
  line-height:1.5;
  text-wrap:pretty;
}

@media(max-width:360px){
  body.has-map-shell .ig-truth-sources details.ig-truth-card .ig-truth-card__label{font-size:14px}
  body.has-map-shell .ig-forest-distance dl>div{align-items:flex-start;flex-direction:column;gap:3px}
}

@media print{
  details.ig-truth-card[data-truth-section="landslides"],
  details.ig-truth-card[data-truth-section="forest"],
  details.ig-truth-card[data-truth-section="protected_areas"],
  details.ig-truth-card[data-truth-section="facilities"],
  details.ig-truth-card[data-truth-section="transport"]{break-inside:avoid}
  details.ig-truth-card[data-truth-section="development"]{break-inside:avoid}
}
