/* Shared presentation for current and future editorial ranking cards. */
.ranking-card[data-ranking-presentation] > .ranking-number::before {
  content: none;
  display: none;
}

.ranking-card[data-ranking-presentation] > .ranking-number {
  align-items: center;
  letter-spacing: 0;
  background: #006dcc;
  border-right: 2px solid #edbc51;
}

.ranking-card[data-ranking-presentation] .ranking-position {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  color: #082c60;
  font: 700 30px/1 Georgia, 'Times New Roman', serif;
  font-variant-numeric: tabular-nums;
  transform: rotate(-8deg);
  filter: drop-shadow(0 2px 2px #002f6b45);
}

/* Short teeth keep the seal circular; the live number stays selectable text. */
.ranking-card[data-ranking-presentation] .ranking-position::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #ffedaa 0%, #ffdb71 32%, #efb536 73%, #ffe38c 100%);
  clip-path: polygon(50.00% 0.00%, 55.74% 6.38%, 62.94% 1.70%, 66.84% 9.35%, 75.00% 6.70%, 76.79% 15.09%, 85.36% 14.64%, 84.91% 23.21%, 93.30% 25.00%, 90.65% 33.16%, 98.30% 37.06%, 93.62% 44.26%, 100.00% 50.00%, 93.62% 55.74%, 98.30% 62.94%, 90.65% 66.84%, 93.30% 75.00%, 84.91% 76.79%, 85.36% 85.36%, 76.79% 84.91%, 75.00% 93.30%, 66.84% 90.65%, 62.94% 98.30%, 55.74% 93.62%, 50.00% 100.00%, 44.26% 93.62%, 37.06% 98.30%, 33.16% 90.65%, 25.00% 93.30%, 23.21% 84.91%, 14.64% 85.36%, 15.09% 76.79%, 6.70% 75.00%, 9.35% 66.84%, 1.70% 62.94%, 6.38% 55.74%, 0.00% 50.00%, 6.38% 44.26%, 1.70% 37.06%, 9.35% 33.16%, 6.70% 25.00%, 15.09% 23.21%, 14.64% 14.64%, 23.21% 15.09%, 25.00% 6.70%, 33.16% 9.35%, 37.06% 1.70%, 44.26% 6.38%);
}

.ranking-card[data-ranking-presentation] .ranking-position::after {
  content: '';
  position: absolute;
  inset: 12%;
  border: 1px solid #b77b28;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #fff1b377;
  pointer-events: none;
}

.ranking-card[data-ranking-presentation] .ranking-copy > .ranking-award {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 56px;
  padding: 9px 12px 10px;
  margin-bottom: 10px;
  border: 0;
  border-bottom: 2px solid #edbc51;
  background: #006dcc;
  color: #fff;
  font: 700 13px/1.3 Georgia, 'Times New Roman', serif;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.ranking-card[data-ranking-presentation] .ranking-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: #ffdf83;
  font: 700 10px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  text-transform: uppercase;
}

.ranking-card[data-ranking-presentation] .ranking-kicker::before {
  content: '\2726';
  flex: 0 0 auto;
}

.ranking-card[data-ranking-presentation] .ranking-kicker::after {
  content: '';
  flex: 1 0 18px;
  border-top: 1px solid #edbc51;
}

.ranking-card[data-ranking-presentation] .ranking-bar-award {
  display: none;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .ranking-card[data-ranking-presentation] .ranking-copy > .ranking-award {
    min-height: 74px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .ranking-card[data-ranking-presentation] .ranking-copy > .ranking-award {
    min-height: 90px;
  }
}

@media (max-width: 760px) {
  .ranking-card[data-ranking-presentation] > .ranking-number {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 108px;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 3px solid #edbc51;
    background: #006dcc;
    color: #fff;
    text-align: left;
  }

  .ranking-card[data-ranking-presentation] .ranking-position {
    width: 76px;
    height: 76px;
    font-size: 38px;
    text-align: center;
  }

  .ranking-card[data-ranking-presentation] .ranking-bar-award {
    display: block;
    min-width: 0;
    flex: 1 1 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }

  .ranking-card[data-ranking-presentation] .ranking-bar-award > .ranking-kicker {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .ranking-card[data-ranking-presentation] .ranking-copy > .ranking-award,
  .ranking-card[data-ranking-presentation]:first-child::after {
    display: none;
    content: none;
  }
}

@media (max-width: 359px) {
  .ranking-card[data-ranking-presentation] > .ranking-number {
    gap: 14px;
    padding-inline: 14px;
  }
  .ranking-card[data-ranking-presentation] .ranking-position {
    width: 64px;
    height: 64px;
    font-size: 32px;
  }
  .ranking-card[data-ranking-presentation] .ranking-bar-award {
    font-size: 16px;
  }
  .ranking-card[data-ranking-presentation] .ranking-bar-award > .ranking-kicker {
    font-size: 10px;
  }
}

@media (forced-colors: active) {
  .ranking-card[data-ranking-presentation] .ranking-position {
    color: CanvasText;
    filter: none;
  }
  .ranking-card[data-ranking-presentation] .ranking-position::before {
    background: Canvas;
  }
  .ranking-card[data-ranking-presentation] .ranking-position::after {
    border-color: CanvasText;
  }
}
