.ki-nuf {
  --nuf-navy: #17385c;
  --nuf-deep: #0e2748;
  --nuf-gold: #b87a08;
  --nuf-line: #dfe5ec;
  --nuf-soft: #f7f8fb;
  --nuf-muted: #526174;
  color: #182433;
  margin: 2rem 0;
}

.ki-nuf__header {
  border-bottom: 1px solid var(--nuf-line);
  margin-bottom: .8rem;
  padding-bottom: .8rem;
}

.ki-nuf__header h2,
.ki-nuf__title {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.45;
  margin: .15rem 0;
}

.ki-nuf__eyebrow {
  color: var(--nuf-gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin: 0;
}

.ki-nuf__lead {
  color: #344255;
  font-size: .92rem;
  line-height: 1.75;
  margin: .4rem 0 0;
}

.ki-nuf h3 {
  color: var(--nuf-deep);
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0 0 .8rem;
}

.ki-nuf__stats {
  color: var(--nuf-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .78rem;
  gap: .35rem 0;
  margin: .8rem 0 1.5rem;
}

.ki-nuf__stats span {
  border-right: 1px solid var(--nuf-line);
  padding: 0 .8rem;
}

.ki-nuf__stats span:first-child {
  padding-left: 0;
}

.ki-nuf__stats span:last-child {
  border-right: 0;
}

.ki-nuf__chart {
  border-bottom: 1px solid var(--nuf-line);
  margin: 0 0 .85rem;
  padding: 0 0 .8rem;
}

.ki-nuf__section-heading {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  justify-content: space-between;
  margin-bottom: .45rem;
}

.ki-nuf__section-heading h3 {
  margin: 0;
}

.ki-nuf__section-heading span {
  color: var(--nuf-muted);
  font-size: .72rem;
}

.ki-nuf__chart-list {
  display: grid;
  gap: 0;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cps-post-main .ki-nuf .ki-nuf__chart-list > li,
.ki-nuf .ki-nuf__chart-list > li {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  border-radius: 0;
  box-shadow: none;
  counter-increment: none;
  display: grid;
  font-size: .8rem;
  gap: .5rem;
  grid-template-columns: 1.35rem minmax(7rem, .8fr) minmax(12rem, 2fr) 5.2rem;
  list-style: none;
  margin: 0 !important;
  min-height: 2.15rem;
  padding: .25rem 0 !important;
  position: relative;
}

.cps-post-main .ki-nuf .ki-nuf__chart-list > li::before,
.cps-post-main .ki-nuf .ki-nuf__chart-list > li::after,
.ki-nuf .ki-nuf__chart-list > li::before,
.ki-nuf .ki-nuf__chart-list > li::after {
  content: none !important;
  display: none !important;
}

.ki-nuf .ki-nuf__chart-list > li::marker {
  content: "";
  font-size: 0;
}

.ki-nuf__chart-rank {
  color: var(--nuf-navy);
  display: block;
  font-size: .76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.ki-nuf__chart-list li:first-child .ki-nuf__chart-rank {
  color: var(--nuf-gold);
}

.ki-nuf__chart-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ki-nuf__chart-bar {
  display: block;
  position: relative;
}

.ki-nuf progress {
  appearance: none;
  background: #e9edf2;
  border: 0;
  border-radius: 2px;
  display: block;
  height: .5rem;
  overflow: hidden;
  width: 100%;
}

.ki-nuf progress::-webkit-progress-bar {
  background: #e9edf2;
}

.ki-nuf progress::-webkit-progress-value {
  background: var(--nuf-navy);
}

.ki-nuf progress::-moz-progress-bar {
  background: var(--nuf-navy);
}

.ki-nuf__chart-list li:first-child progress::-webkit-progress-value {
  background: var(--nuf-gold);
}

.ki-nuf__chart-list li:first-child progress::-moz-progress-bar {
  background: var(--nuf-gold);
}

.ki-nuf__chart-bar i {
  border-left: 1px dashed var(--nuf-gold);
  height: .82rem;
  position: absolute;
  top: -.16rem;
}

.ki-nuf__chart-list strong {
  color: var(--nuf-deep);
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.ki-nuf__chart-list > li.is-related {
  background: #f3f6fa;
}

.ki-nuf__chart-source {
  color: var(--nuf-muted);
  font-size: .68rem;
  line-height: 1.55;
  margin: .45rem 0 0;
  text-align: right;
}

.ki-nuf__chart-summary {
  border-left: 3px solid var(--nuf-navy);
  color: #344255;
  font-size: .86rem;
  line-height: 1.75;
  margin: .85rem 0 1.5rem;
  padding: .15rem 0 .15rem .8rem;
}

.ki-nuf__ranking-table {
  margin-top: 1rem;
}

.ki-nuf__table-tools {
  align-items: end;
  border-bottom: 1px solid var(--nuf-line);
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  margin-bottom: .7rem;
  padding-bottom: .8rem;
}

.ki-nuf__table-tools label {
  color: var(--nuf-muted);
  display: grid;
  font-size: .72rem;
  gap: .25rem;
  margin-right: auto;
}

.ki-nuf__table-tools input {
  background: #fff;
  border: 1px solid #ccd5df;
  border-radius: 5px;
  font-size: .85rem;
  min-height: 40px;
  min-width: min(280px, 70vw);
  padding: .45rem .65rem;
}

.ki-nuf__table-tools select {
  background: #fff;
  border: 1px solid #ccd5df;
  border-radius: 5px;
  color: var(--nuf-deep);
  font-size: .8rem;
  min-height: 40px;
  padding: .4rem 2rem .4rem .6rem;
}

.ki-nuf__limit {
  display: flex;
  gap: .3rem;
}

.ki-nuf__limit button {
  background: #fff;
  border: 1px solid #ccd5df;
  border-radius: 4px;
  color: var(--nuf-navy);
  cursor: pointer;
  font-size: .75rem;
  min-height: 36px;
  padding: .35rem .65rem;
}

.ki-nuf__limit button[aria-pressed="true"] {
  background: var(--nuf-navy);
  border-color: var(--nuf-navy);
  color: #fff;
}

.ki-nuf__table-tools [data-nuf-count] {
  color: var(--nuf-muted);
  font-size: .72rem;
}

.ki-nuf__table-wrap {
  overflow: auto;
}

.ki-nuf--ranking .ki-nuf__table-wrap {
  max-height: 680px;
}

.ki-nuf table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 680px;
  width: 100%;
}

.ki-nuf--ranking table {
  min-width: 0;
  table-layout: fixed;
}

.ki-nuf th,
.ki-nuf td {
  background: #fff;
  border-bottom: 1px solid var(--nuf-line);
  padding: .72rem .65rem;
  text-align: right;
  vertical-align: middle;
}

.ki-nuf th:nth-child(2),
.ki-nuf td:nth-child(2),
.ki-nuf th[scope="row"] {
  text-align: left;
}

.ki-nuf thead th {
  background: var(--nuf-soft);
  color: var(--nuf-muted);
  font-size: .75rem;
}

.ki-nuf--ranking thead th {
  background: var(--nuf-deep);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.ki-nuf tbody tr:nth-child(even) th,
.ki-nuf tbody tr:nth-child(even) td {
  background: #fafbfd;
}

.ki-nuf--ranking tbody tr:first-child th,
.ki-nuf--ranking tbody tr:first-child td {
  border-top: 2px solid var(--nuf-gold);
}

.ki-nuf--ranking th,
.ki-nuf--ranking td {
  font-size: .76rem;
  line-height: 1.45;
  padding: .48rem .5rem;
}

.ki-nuf--ranking th:first-child,
.ki-nuf--ranking td:first-child {
  width: 3rem;
}

.ki-nuf--ranking th:nth-child(2),
.ki-nuf--ranking td:nth-child(2) {
  overflow-wrap: anywhere;
  width: auto;
}

.ki-nuf--ranking th:nth-child(3),
.ki-nuf--ranking td:nth-child(3) {
  white-space: nowrap;
  width: 8.8rem;
}

.ki-nuf--ranking th:nth-child(4),
.ki-nuf--ranking td:nth-child(4) {
  white-space: nowrap;
  width: 7.2rem;
}

.ki-nuf--ranking tbody tr.is-search-match > th,
.ki-nuf--ranking tbody tr.is-search-match > td {
  background: #fff8df;
}

.ki-nuf--ranking tbody tr.is-related > th,
.ki-nuf--ranking tbody tr.is-related > td {
  box-shadow: inset 3px 0 0 var(--nuf-gold);
}

.ki-nuf tr[hidden] {
  display: none;
}

.ki-nuf__note {
  color: var(--nuf-muted);
  font-size: .75rem;
  line-height: 1.75;
}

.ki-nuf__filters {
  align-items: end;
  border-bottom: 1px solid var(--nuf-line);
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.ki-nuf__filters label {
  color: var(--nuf-muted);
  display: grid;
  font-size: .78rem;
  gap: .25rem;
}

.ki-nuf__filters input,
.ki-nuf__filters select {
  background: #fff;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  min-height: 42px;
  padding: .45rem .6rem;
}

.ki-nuf__filters button {
  background: var(--nuf-navy);
  border: 0;
  border-radius: 8px;
  color: #fff;
  min-height: 42px;
  padding: .5rem 1rem;
}

.ki-nuf__trend {
  display: grid;
  gap: .45rem;
  margin: 1.2rem 0;
}

.ki-nuf__trend-row {
  align-items: center;
  display: grid;
  font-size: .78rem;
  gap: .55rem;
  grid-template-columns: 3.5rem minmax(7rem, 1fr) 6.5rem;
}

.ki-nuf__bar {
  background: #eef2f6;
  border-radius: 999px;
  height: .55rem;
  overflow: hidden;
}

.ki-nuf__bar i {
  background: var(--nuf-navy);
  display: block;
  height: 100%;
}

@media (max-width: 640px) {
  .ki-nuf__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ki-nuf__stats span,
  .ki-nuf__stats span:first-child {
    border: 0;
    padding: 0;
  }

  .cps-post-main .ki-nuf .ki-nuf__chart-list > li,
  .ki-nuf .ki-nuf__chart-list > li {
    gap: .35rem;
    grid-template-columns: 1.15rem minmax(5.4rem, 1fr) minmax(5rem, .8fr);
    min-height: 2rem;
    padding: .2rem 0 !important;
  }

  .ki-nuf__chart-list strong {
    display: none;
  }

  .ki-nuf__table-tools {
    align-items: stretch;
  }

  .ki-nuf__table-tools label,
  .ki-nuf__table-tools input {
    margin: 0;
    width: 100%;
  }

  .ki-nuf__table-tools .ki-nuf__sort,
  .ki-nuf__table-tools select {
    width: 100%;
  }

  .ki-nuf--ranking table {
    min-width: 100%;
  }

  .ki-nuf--ranking th:first-child,
  .ki-nuf--ranking td:first-child {
    width: 2.6rem;
  }

  .ki-nuf--ranking th:nth-child(3),
  .ki-nuf--ranking td:nth-child(3) {
    width: 7.6rem;
  }

  .ki-nuf--ranking .ki-nuf__comparison-col {
    display: none;
  }

  .ki-nuf th,
  .ki-nuf td {
    padding: .5rem .4rem;
  }

  .ki-nuf__trend-row {
    grid-template-columns: 3rem minmax(5rem, 1fr) 5.5rem;
  }
}
