.feature-table-wrap {
  overflow: visible;
  max-width: 100%;
  border: 1px solid rgba(255, 0, 18, .32);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(48, 0, 6, .38), rgba(7, 7, 8, .76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1rem 2rem rgba(0, 0, 0, .24);
}

.feature-data-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.feature-data-table th,
.feature-data-table td {
  padding: .9rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.feature-data-table th:last-child,
.feature-data-table td:last-child {
  border-right: 0;
}

.feature-data-table th {
  color: #fff;
  background: linear-gradient(180deg, rgba(170, 0, 15, .72), rgba(54, 0, 7, .88));
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.feature-data-table th:nth-child(2) {
  color: #ffd38a;
}

.feature-data-table th:nth-child(3) {
  color: #9de7b0;
}

.feature-data-table tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, .018);
}

.feature-data-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, .045);
}

.feature-data-table tbody tr:hover td {
  background: rgba(255, 0, 18, .1);
}

.feature-data-table tr:last-child td {
  border-bottom: 0;
}

.feature-data-table td:first-child {
  background: linear-gradient(90deg, rgba(255, 0, 18, .12), rgba(255, 255, 255, .018));
}

.feature-data-table td:nth-child(2) {
  box-shadow: inset .18rem 0 0 rgba(255, 178, 78, .42);
}

.feature-data-table td:nth-child(3) {
  box-shadow: inset .18rem 0 0 rgba(91, 214, 116, .38);
}

.feature-data-table code,
.feature-copy-command code,
.feature-command-card code {
  display: inline-block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: .16rem .38rem;
  border: 1px solid rgba(255, 0, 18, .24);
  border-radius: 6px;
  background: rgba(255, 0, 18, .12);
  color: #ff9aa5;
}

.feature-data-table__toggle {
  width: 12rem;
}

.feature-data-table__use,
.feature-data-table__skip {
  width: calc((100% - 12rem) / 2);
}

.feature-trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-trio .feature-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 16rem;
  object-fit: contain;
  object-position: left top;
}

.feature-command-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: .85rem;
}

.feature-command-card {
  border: 1px solid rgba(255, 0, 18, .26);
  border-radius: 8px;
  padding: .9rem;
  background: linear-gradient(180deg, rgba(34, 0, 4, .34), rgba(8, 8, 10, .72));
}

.feature-command-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

.feature-command-card__header code {
  font-size: .95rem;
}

.feature-command-card__options {
  margin: .75rem 0 0;
  padding-left: 1.1rem;
}

.feature-command-card__options li + li {
  margin-top: .35rem;
}

.feature-copy-command__label {
  color: #ffd38a;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.feature-note-card {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, .035);
}

.feature-note-card strong {
  color: #fff;
}

.feature-callout {
  border: 1px solid rgba(255, 209, 102, .36);
  background: linear-gradient(135deg, rgba(255, 209, 102, .12), rgba(255, 255, 255, .035));
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.feature-callout--disabled {
  border-color: rgba(255, 185, 82, .72);
  background: linear-gradient(135deg, rgba(120, 62, 0, .28), rgba(92, 24, 24, .2));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.feature-callout__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ffd38a;
  margin-bottom: .35rem;
}

.feature-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1rem;
}

.feature-mini-grid .feature-note-card h3 {
  margin-top: 0;
}

.feature-rank-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .7rem;
  margin-top: 1rem;
}

.feature-rank-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: .35rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: .7rem .45rem;
  background: rgba(255, 255, 255, .035);
  min-width: 0;
}

.feature-rank-card img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .16));
}

.feature-rank-card strong {
  font-size: .82rem;
  line-height: 1.12;
  color: #fff;
}

.feature-rank-card span {
  font-size: .74rem;
  line-height: 1.15;
  opacity: .82;
}

.feature-stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-stat-list li {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: .75rem;
  background: rgba(255, 255, 255, .035);
}

.feature-stat-list strong {
  display: block;
  color: #fff;
  margin-bottom: .2rem;
}

.site-main img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.feature-rank-card img {
  width: 46px;
  height: 46px;
}

.feature-media-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .8rem;
  overflow: visible;
  scroll-snap-type: none;
}

.feature-card .feature-media-row {
  margin-top: 1rem;
}

.feature-media-row figure {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: .4rem;
  flex: 0 1 min(100%, var(--feature-image-width, 32rem));
  min-width: 0;
  width: min(100%, var(--feature-image-width, 32rem));
  max-width: 100%;
  margin: 0;
  padding: .45rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  background: rgba(0, 0, 0, .14);
}

.feature-media-row figcaption {
  max-width: min(100%, var(--feature-image-width, 42rem));
  color: rgba(255, 255, 255, .76);
  font-size: .82rem;
  line-height: 1.35;
}

.feature-media-row img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, var(--feature-image-width, 100%));
  max-height: 16rem;
  max-inline-size: min(100%, var(--feature-image-width, 100%));
  max-block-size: 16rem;
  justify-self: center;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
}

body.page-feature-detail .feature-media-row img {
  max-block-size: 16rem;
}

.feature-media-row--wide img {
  max-height: 24rem;
  max-block-size: 24rem;
}

.feature-media-row--qr img {
  max-height: 26rem;
  max-block-size: 26rem;
  background: transparent;
}

.feature-explainer {
  display: grid;
  grid-template-columns: minmax(16rem, .9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.feature-explainer + .feature-explainer {
  margin-top: 1rem;
}

.feature-explainer__copy {
  min-width: 0;
}

.feature-explainer__copy h2,
.feature-explainer__copy h3 {
  margin-top: 0;
}

.feature-explainer__copy p:last-child {
  margin-bottom: 0;
}

.feature-explainer .feature-media-row {
  margin-top: 0;
}

.feature-explainer .feature-media-row figure {
  width: min(100%, var(--feature-image-width, 42rem));
}

.feature-media-row img,
.feature-rank-card img,
.site-main img[data-feature-image] {
  cursor: zoom-in;
}

.feature-carousel-controls {
  display: none;
  justify-content: flex-end;
  gap: .5rem;
  margin: -.35rem 0 .45rem;
}

.feature-carousel-button,
.feature-image-viewer__close {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(0, 0, 0, .58);
  color: #fff;
  font: inherit;
  font-size: .85rem;
  line-height: 1;
  padding: .55rem .7rem;
  cursor: pointer;
}

.feature-carousel-button:hover,
.feature-carousel-button:focus-visible,
.feature-image-viewer__close:hover,
.feature-image-viewer__close:focus-visible {
  border-color: rgba(255, 209, 102, .72);
  color: #ffd38a;
}

.feature-image-viewer {
  width: min(96vw, 96rem);
  max-width: 96vw;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.feature-image-viewer::backdrop {
  background: rgba(0, 0, 0, .86);
}

.feature-image-viewer__panel {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(6, 6, 8, .96);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, .55);
}

.feature-image-viewer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.feature-image-viewer__title {
  margin: 0;
  font-size: .95rem;
  line-height: 1.3;
  color: #fff;
}

.feature-image-viewer__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
}

@media (max-width: 62rem) {
  .feature-trio {
    grid-template-columns: 1fr;
  }

  .feature-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-rank-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .feature-explainer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .feature-data-table,
  .feature-data-table thead,
  .feature-data-table tbody,
  .feature-data-table tr,
  .feature-data-table th,
  .feature-data-table td {
    display: block;
    width: 100%;
  }

  .feature-data-table thead {
    display: none;
  }

  .feature-data-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .feature-data-table td {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .feature-mini-grid,
  .feature-stat-list {
    grid-template-columns: 1fr;
  }

  .feature-rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-rank-card img {
    width: 40px;
    height: 40px;
  }

  .feature-media-row {
    gap: .65rem;
  }

  .feature-media-row figure {
    flex-basis: min(100%, var(--feature-image-width, 100%));
    padding: .35rem;
  }

  .feature-media-row img {
    max-height: 12rem;
    max-block-size: 12rem;
  }

  body.page-feature-detail .feature-media-row img {
    max-block-size: 12rem;
  }
}
