/* skills.css - Skills section: rows, logo tiles and the level overlay. */

.skills {
  border-bottom: 1px solid var(--line);
}

.skill {
  display: grid;
  grid-template-columns: minmax(12rem,1fr) 3fr;
  gap: 1.25rem 2.5rem;
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.skill h3 {
  margin: 0 0 .4rem;
  font-weight: 500;
  font-size: 1.35rem;
}

.skill p {
  margin: 0;
  color: var(--mute);
  font-size: .95rem;
  max-width: 28ch;
}

@media (max-width:700px) {
  .skill {
    grid-template-columns: 1fr;
    padding: 1.5rem 0;
  }
  .skill p {
    max-width: none;
  }
  .logos li {
    width: calc(33.333% - .75rem);
  }
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos li {
  width: 6.5rem;
}

.sk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: .85rem;
  line-height: 1.3;
  text-align: center;
}

button.sk {
  cursor: pointer;
  border-radius: 16px;
}

.lg {
  position: relative;
  display: block;
  width: 100%;
  height: 4.5rem;
  padding: .7rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.lg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lg.txt {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: linear-gradient(160deg,#86d9b8,#46ad85);
  color: #06140e;
  font-weight: 600;
  font-size: 1.25rem;
}

.lv {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  background: linear-gradient(160deg,#0b2a21,#14473a);
  color: #eef9f3;
  font-size: .75rem;
  font-weight: 400;
  opacity: 0;
  transition: opacity .2s;
}

.lv b {
  font-weight: 600;
}

.pips {
  display: flex;
  gap: 3px;
}

.pips i {
  width: .8rem;
  height: .35rem;
  border-radius: 3px;
  border: 1px solid #8fdcbc;
}

.pips i.on {
  background: #5cc49b;
  border-color: #5cc49b;
}

button.sk:hover .lv,button.sk:focus-visible .lv,li.open .lv {
  opacity: 1;
}

.noh .lv {
  opacity: 0!important;
}

.hint {
  color: var(--at);
  font-size: .95rem;
  margin: -1.75rem 0 2rem;
  max-width: 60ch;
}
