/* UI Firmware Mirror — оформление в стиле темы markov.
   Палитра сайта: фон #1A1A1A, текст #ffffff, акцент #CCFF00, шрифт Inter.
   Размеры в rem: тема задаёт html { font-size: 0.52vw }, поэтому 1.6rem ≈ 16px. */

.uifw {
  padding: 4rem var(--mkv-offset) 8rem;
  color: #ffffff;
}

.uifw__head {
  max-width: 90rem;
  margin-bottom: 4rem;
}

.uifw__lead {
  margin: 0 0 1.6rem;
}

.uifw__title {
  font-size: 3.6rem;
  line-height: 1.2;
  font-weight: 500;
  margin: 0 0 1.6rem;
}

.uifw__src-link {
  color: #CCFF00;
  text-decoration: none;
  transition: opacity .25s;
}

.uifw__src-link:hover {
  opacity: .6;
}

.uifw__meta {
  margin: 0;
  color: #808080;
}

.uifw__accent {
  color: #CCFF00;
}

.uifw__empty {
  color: #808080;
}

/* Фильтры */

.uifw__controls {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.uifw__search,
.uifw__filter {
  font-family: "Inter", sans-serif;
  font-size: 1.6rem;
  line-height: 1.25;
  color: #ffffff;
  background-color: #0D0D0D;
  border: .1rem solid #333333;
  border-radius: 0;
  padding: 1.6rem 2rem;
  outline: none;
  transition: border-color .25s;
}

.uifw__search {
  flex: 1 1 40rem;
  min-width: 24rem;
}

.uifw__filter {
  flex: 0 1 28rem;
  cursor: pointer;
}

.uifw__search:focus,
.uifw__filter:focus {
  border-color: #CCFF00;
}

.uifw__search::placeholder {
  color: #666666;
}

.uifw__count {
  margin: 0 0 1.6rem;
  color: #808080;
}

/* Таблица */

.uifw__table {
  border-top: .1rem solid #333333;
}

.uifw__row {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1.2fr .8fr .7fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.8rem 0;
  border-bottom: .1rem solid #333333;
  font-size: 1.6rem;
  line-height: 1.4;
}

.uifw__row--head {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #808080;
  padding: 1.2rem 0;
}

.uifw__row--hidden {
  display: none;
}

.uifw__product {
  font-weight: 600;
  word-break: break-word;
}

.uifw__platform,
.uifw__date,
.uifw__size {
  color: #B3B3B3;
}

.uifw__version {
  color: #CCFF00;
  word-break: break-word;
}

.uifw__action {
  justify-self: end;
}

.uifw__btn {
  display: inline-flex;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  text-decoration: none;
  color: #000000;
  background-color: #CCFF00;
  padding: 1.2rem 2.4rem;
  border-radius: 10rem;
  transition: opacity .25s;
  white-space: nowrap;
}

.uifw__btn:hover {
  opacity: .6;
}

.uifw__note {
  margin: 2.4rem 0 0;
  color: #666666;
}

/* Страница устройства */

.uifw__crumbs {
  margin-bottom: 2rem;
  color: #666666;
}

.uifw__crumbs a {
  color: #808080;
  text-decoration: none;
  transition: color .25s;
}

.uifw__crumbs a:hover {
  color: #CCFF00;
}

.uifw__crumbs span {
  margin: 0 .6rem 0 .4rem;
}

.uifw__h1 {
  font-size: 6.4rem;
  line-height: 1.1;
  margin: 0 0 2.4rem;
}

.uifw__product-link {
  color: inherit;
  text-decoration: none;
  border-bottom: .1rem solid rgba(204, 255, 0, .35);
  transition: color .25s, border-color .25s;
}

.uifw__product-link:hover {
  color: #CCFF00;
  border-color: #CCFF00;
}

.uifw__row--device {
  grid-template-columns: 1fr .9fr .8fr .7fr 3.2fr auto;
}

.uifw__file {
  position: relative;
}

.uifw__link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1.5rem;
  line-height: 1.5;
  color: #CCFF00;
  text-decoration: none;
  word-break: break-all;
  cursor: copy;
  border-bottom: .1rem dashed transparent;
  transition: border-color .25s;
}

.uifw__link:hover {
  border-color: #CCFF00;
}

.uifw__copy-icon {
  width: 1.15em;
  height: 1.15em;
  margin-left: .5em;
  vertical-align: -.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uifw__link--copied::after {
  content: attr(data-copied);
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  color: #000000;
  background-color: #CCFF00;
  border-radius: .4rem;
  padding: .1rem .6rem;
  white-space: nowrap;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: .4rem;
}

.uifw__related {
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: .1rem solid #333333;
}

.uifw__related-title {
  margin: 0 0 2rem;
}

.uifw__related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.uifw__related-link {
  display: inline-flex;
  color: #B3B3B3;
  text-decoration: none;
  border: .1rem solid #333333;
  border-radius: 10rem;
  padding: .8rem 1.8rem;
  transition: color .25s, border-color .25s;
}

.uifw__related-link:hover {
  color: #CCFF00;
  border-color: #CCFF00;
}

/* Планшет */

@media (max-width: 1024px) {
  .uifw__row {
    grid-template-columns: 1.4fr 1fr 1fr .8fr auto;
  }

  .uifw__row--device {
    grid-template-columns: 1fr 1fr .8fr 2.6fr auto;
  }

  .uifw__row--device.uifw__row--head span:nth-child(5) {
    display: block;
  }

  .uifw__row--device.uifw__row--head span:nth-child(4) {
    display: none;
  }

  .uifw__row .uifw__size,
  .uifw__row--head span:nth-child(5) {
    display: none;
  }

  .uifw__h1 {
    font-size: 4.8rem;
  }
}

/* Мобильные: строки превращаются в карточки */

@media (max-width: 576px) {
  .uifw {
    padding: 3rem var(--mkv-offset) 6rem;
  }

  .uifw__row--head {
    display: none;
  }

  .uifw__row {
    grid-template-columns: 1fr;
    gap: .8rem;
    padding: 2rem 0;
  }

  .uifw__row--device {
    grid-template-columns: 1fr;
  }

  .uifw__h1 {
    font-size: 3.4rem;
  }

  .uifw__row .uifw__size {
    display: block;
  }

  .uifw__row span[data-label]:not(.uifw__product)::before {
    content: attr(data-label) ": ";
    color: #666666;
  }

  .uifw__product {
    font-size: 1.8rem;
  }

  .uifw__action {
    justify-self: start;
    margin-top: .8rem;
  }

  .uifw__file {
    padding-bottom: 2.4rem;
  }

  .uifw__link--copied::after {
    top: auto;
    bottom: 0;
  }

  .uifw__btn {
    width: auto;
    min-width: 16rem;
  }
}

/* Обёртка, которую пропускает TranslatePress (см. uifw_t). */
uifw-skip {
  display: contents;
}
