/* devcos.ro — funcțiile din carduri: bulină cu iconiță + etichetă.
   Înlocuiește pastilele conturate, care aveau aceeași greutate vizuală ca
   eticheta de status de deasupra. Iconițele sunt contururi de 24x24 aplicate
   ca background-image, cu conturul deja în verde petrol — culoarea pe care
   palette.css o rezervă iconurilor. */

/* Cele trei funcții stau pe un singur rând, despărțite de un fir vertical.
   Firul e poziționat absolut în mijlocul spațiului dintre elemente, deci nu
   consumă lățime — marja de o linie e strânsă (9-14px la 3 coloane) și nu
   suportă un separator care ocupă loc în flux. */
.card ul {
  --fx-gap: 9px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--fx-gap);
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.card li {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--color-text, #17202A);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.card li::before {
  content: "";
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border-radius: 50%;
  background-color: rgba(15, 118, 110, .10);
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 13px 13px;
}

/* Separatorul: fir de 1px, la jumătatea spațiului, mai scurt decât rândul. */
.card li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--fx-gap) / -2);
  width: 1px;
  height: 15px;
  transform: translateY(-50%);
  background: var(--color-border, #D9E2EC);
}

/* Ca lista să încapă pe un rând, grila trebuie să comute mai devreme: între
   1001 și 1240px cardul avea ~250px utili la 3 coloane, adică sub orice
   dimensiune lizibilă. Pragul de 1240px e același cu al antetului. Regulile
   sunt limitate la #solutii, ca restul grilelor să nu se miște. */
@media (max-width: 1240px) {
  #solutii .cards { grid-template-columns: repeat(2, 1fr); }
}

/* O coloană de la 900px: sub pragul ăsta, la două coloane cardul coboară spre
   310px utili și lista nu mai încape (măsurat: marjă negativă la 821px). */
@media (max-width: 900px) {
  #solutii .cards { grid-template-columns: 1fr; }
  .card ul { --fx-gap: 18px; }
  .card li { font-size: 13.5px; gap: 9px; }
  .card li::before { width: 30px; height: 30px; flex-basis: 30px; background-size: 16px 16px; }
  .card li:not(:last-child)::after { height: 18px; }
}

/* Pe telefon cardul redevine îngust. Sub ~430px lățime de ecran cele trei
   etichete nu mai încap pe un rând oricât le-am micșora, iar `wrap` din
   .card ul le trece pe al doilea rând în loc să le scoată din card. */
@media (max-width: 470px) {
  .card ul { --fx-gap: 9px; }
  .card li { font-size: 11.5px; gap: 6px; }
  .card li::before { width: 23px; height: 23px; flex-basis: 23px; background-size: 13px 13px; }
  .card li:not(:last-child)::after { height: 15px; }
}

/* Setul de iconițe. Mapate pe etichete și în conversion-ui.js, fiindcă
   hidratarea Next șterge atributele scrise în index.html. */
.card li[data-icon="file-text"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M15 13H9'/%3E%3Cpath d='M15 17H9'/%3E%3Cpath d='M10 9H9'/%3E%3C/svg%3E"); }
.card li[data-icon="zap"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.card li[data-icon="upload"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m8 8 4-4 4 4'/%3E%3Cpath d='M12 4v12'/%3E%3C/svg%3E"); }
.card li[data-icon="cart"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2 3h2.2l2.5 11.4a1.6 1.6 0 0 0 1.6 1.3h8.8a1.6 1.6 0 0 0 1.6-1.3L21 7H5.3'/%3E%3C/svg%3E"); }
.card li[data-icon="receipt"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3v18l2.3-1.4L9.6 21l2.4-1.4L14.4 21l2.3-1.4L19 21V3l-2.3 1.4L14.4 3l-2.4 1.4L9.6 3 7.3 4.4z'/%3E%3Cpath d='M9 8h6'/%3E%3Cpath d='M9 12h6'/%3E%3Cpath d='M9 16h3'/%3E%3C/svg%3E"); }
.card li[data-icon="truck"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17V6a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1'/%3E%3Cpath d='M10 8h5.6a1 1 0 0 1 .8.4L20 13v4h-2'/%3E%3Cpath d='M8 17h6'/%3E%3Ccircle cx='6' cy='18' r='1.8'/%3E%3Ccircle cx='16' cy='18' r='1.8'/%3E%3C/svg%3E"); }
.card li[data-icon="swap"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 15 3.5 3.5L10 15'/%3E%3Cpath d='M6.5 18.5V5'/%3E%3Cpath d='m21 9-3.5-3.5L14 9'/%3E%3Cpath d='M17.5 5.5V19'/%3E%3C/svg%3E"); }
.card li[data-icon="check"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12 2.4 2.4L15.8 9.5'/%3E%3C/svg%3E"); }
.card li[data-icon="layers"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 8.5 4.6L12 12.2 3.5 7.6z'/%3E%3Cpath d='m3.5 12.4 8.5 4.6 8.5-4.6'/%3E%3Cpath d='m3.5 16.8 8.5 4.6 8.5-4.6'/%3E%3C/svg%3E"); }
.card li[data-icon="shield"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21.5s7.5-3.6 7.5-9.3V5.6L12 2.6 4.5 5.6v6.6c0 5.7 7.5 9.3 7.5 9.3z'/%3E%3Cpath d='m9 12 2.2 2.2L15.4 10'/%3E%3C/svg%3E"); }
.card li[data-icon="code"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15.5 17.5 5.5-5.5-5.5-5.5'/%3E%3Cpath d='m8.5 6.5-5.5 5.5 5.5 5.5'/%3E%3C/svg%3E"); }
.card li[data-icon="kanban"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h4.5v16H4z'/%3E%3Cpath d='M11.5 4H16v10h-4.5z'/%3E%3Cpath d='M19 4h1.5v6H19z'/%3E%3C/svg%3E"); }
.card li[data-icon="chart"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4v16h16'/%3E%3Cpath d='M8.5 17v-5'/%3E%3Cpath d='M13 17V8'/%3E%3Cpath d='M17.5 17v-3'/%3E%3C/svg%3E"); }
.card li[data-icon="map"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 3.5-5.5 2.6v14.4L9 18l6 2.5 5.5-2.6V3.5L15 6z'/%3E%3Cpath d='M9 3.5V18'/%3E%3Cpath d='M15 6v14.5'/%3E%3C/svg%3E"); }
.card li[data-icon="navigation"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.5 2.5-8 19-2.9-8.1-8.1-2.9z'/%3E%3C/svg%3E"); }
.card li[data-icon="clipboard-check"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H7a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2'/%3E%3Cpath d='M9 2.5h6V6H9z'/%3E%3Cpath d='m9.5 13.5 2 2 3.5-4'/%3E%3C/svg%3E"); }
