body:has(.wpcom-ai-athletes-section) {
  --athletes-red: #941b24;
  --athletes-ink: #171615;
  --athletes-paper: #f7f6f4;
  background: var(--athletes-ink);
}

.athletes-site-nav {
  position: sticky;
  z-index: 1000;
  top: 0;
  display: flex;
  min-height: 66px;
  padding: 9px clamp(18px, 5vw, 72px);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  background: var(--athletes-red);
}

.athletes-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.athletes-brand-mark {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.athletes-brand-name {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.13em;
}

.athletes-brand-name span {
  opacity: 0.65;
}

.athletes-home-link {
  display: inline-flex;
  min-height: 38px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.athletes-home-link:hover {
  transform: translateY(-1px);
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.athletes-site-nav :focus-visible,
.wpcom-ai-athletes-tabs :focus-visible {
  outline: 3px solid #f2a6a8;
  outline-offset: 4px;
}

body:not(.athlete-tabs-ready) #tabs_1-tab-2,
body:not(.athlete-tabs-ready) #athletes-palmares-panel,
.wpcom-ai-athletes-grid-panel[hidden],
#athletes-palmares-panel[hidden] {
  display: none !important;
}

.wpcom-ai-athletes-section {
  min-height: calc(100svh - 66px);
  padding-top: clamp(56px, 8vw, 96px) !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(148, 27, 36, 0.12), transparent 48%),
    #101010 !important;
}

.wpcom-ai-athletes-section > .wp-block-group:first-child {
  max-width: 820px;
  margin-right: auto !important;
  margin-left: auto !important;
}

.wpcom-ai-athletes-section > .wp-block-group:first-child > p:first-child {
  letter-spacing: 0.3em !important;
}

.wpcom-ai-athletes-section > .wp-block-group:first-child h2 a {
  color: inherit;
  text-decoration: none;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 0.14em;
  transition: text-decoration-color 180ms ease;
}

.wpcom-ai-athletes-section > .wp-block-group:first-child h2 a:hover {
  text-decoration: underline;
  text-decoration-color: #ffffff;
}

.wpcom-ai-athletes-tab-list {
  gap: 12px !important;
}

.wpcom-ai-athletes-tab-list [role="tab"] {
  min-height: 42px;
  padding: 0 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.wpcom-ai-athletes-tab-list [role="tab"][aria-selected="true"] {
  border-color: #ffffff;
  color: #171615;
  background: #ffffff;
}

.wpcom-ai-athletes-tab-list [role="tab"]:hover:not([aria-selected="true"]) {
  border-color: rgba(255, 255, 255, 0.56);
  color: #ffffff;
}

.wpcom-ai-athletes-tab-panels {
  margin-top: clamp(24px, 4vw, 42px);
}

.wpcom-ai-athletes-grid-panel {
  animation: athletes-panel-arrive 420ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.wpcom-ai-ar-card,
.wpcom-ai-grid-card {
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.25, 1), box-shadow 300ms ease;
}

.wpcom-ai-ar-card img,
.wpcom-ai-grid-card img {
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.25, 1);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wpcom-ai-ar-card:hover,
  .wpcom-ai-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  }

  .wpcom-ai-ar-card:hover img,
  .wpcom-ai-grid-card:hover img {
    transform: scale(1.025);
  }
}

@keyframes athletes-panel-arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .athletes-site-nav {
    min-height: 58px;
    padding-inline: 16px;
  }

  .athletes-brand {
    gap: 8px;
  }

  .athletes-brand-mark {
    font-size: 15px;
  }

  .athletes-brand-name {
    max-width: 160px;
    padding-left: 8px;
    font-size: 7px;
    letter-spacing: 0.1em;
  }

  .athletes-home-link {
    min-height: 34px;
    padding-inline: 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .wpcom-ai-athletes-section {
    min-height: calc(100svh - 58px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .athletes-home-link,
  .wpcom-ai-athletes-tab-list [role="tab"],
  .wpcom-ai-ar-card,
  .wpcom-ai-ar-card img,
  .wpcom-ai-grid-card,
  .wpcom-ai-grid-card img {
    transition: none !important;
  }

  .wpcom-ai-athletes-grid-panel {
    animation: none !important;
  }

  .wpcom-ai-ar-card:hover,
  .wpcom-ai-grid-card:hover,
  .wpcom-ai-ar-card:hover img,
  .wpcom-ai-grid-card:hover img {
    transform: none !important;
  }
}

body:has(.wpcom-ai-athletes-section) {
  background: #0c0b0b;
  color-scheme: dark;
  scroll-behavior: smooth;
}

.athletes-site-nav {
  min-height: 72px;
  padding-inline: clamp(20px, 6vw, 88px);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(117, 20, 29, 0.96);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.athletes-brand-mark {
  font-size: 19px;
}

.athletes-brand-name {
  font-size: 10px;
}

.athletes-home-link {
  min-height: 42px;
  padding-inline: 19px;
  border-color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.athletes-home-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.wpcom-ai-athletes-section {
  min-height: calc(100svh - 72px);
  padding: clamp(78px, 10vw, 132px) clamp(20px, 6vw, 88px) clamp(76px, 9vw, 120px) !important;
  background:
    radial-gradient(ellipse 54% 30% at 50% 0%, rgba(148, 27, 36, 0.2), transparent 100%),
    linear-gradient(180deg, #121010 0%, #0d0c0c 58%, #111010 100%) !important;
}

.wpcom-ai-athletes-section::before {
  background:
    radial-gradient(ellipse 42% 32% at 8% 42%, rgba(207, 46, 46, 0.08), transparent 75%),
    radial-gradient(ellipse 42% 32% at 92% 74%, rgba(207, 46, 46, 0.07), transparent 75%);
}

.wpcom-ai-athletes-section > .wp-block-group:first-child {
  max-width: 920px;
  margin-bottom: clamp(42px, 6vw, 72px) !important;
}

.wpcom-ai-athletes-section > .wp-block-group:first-child > p:first-child {
  margin-bottom: 20px;
  color: #ed7779 !important;
  font-size: 11px !important;
  letter-spacing: 0.34em !important;
}

.wpcom-ai-athletes-section > .wp-block-group:first-child h2 {
  font-size: clamp(42px, 6.5vw, 78px) !important;
  line-height: 0.98;
  letter-spacing: -0.055em !important;
  text-wrap: balance;
}

.wpcom-ai-athletes-section > .wp-block-group:first-child > p:last-child {
  max-width: 640px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: clamp(14px, 1.25vw, 17px) !important;
  line-height: 1.75;
  text-wrap: pretty;
}

.wpcom-ai-athletes-tabs .wp-block-tab-list,
.wp-block-tabs.wpcom-ai-athletes-tabs > .wp-block-tab-list {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 28px !important;
  padding: 5px !important;
  gap: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wpcom-ai-athletes-tabs .wp-block-tab-list [role="tab"] {
  min-height: 44px;
  padding: 0 22px !important;
  border: 1px solid transparent !important;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 10px !important;
  letter-spacing: 0.17em !important;
  transition:
    color 240ms ease,
    background-color 240ms ease,
    border-color 240ms ease,
    transform 240ms ease !important;
}

.wpcom-ai-athletes-tabs .wp-block-tab-list [role="tab"]:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

.wpcom-ai-athletes-tabs .wp-block-tab-list [role="tab"][aria-selected="true"] {
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #a9242c, #74141b) !important;
  box-shadow: 0 5px 18px rgba(125, 18, 27, 0.3);
}

.wpcom-ai-athletes-tab-panels {
  margin-top: clamp(28px, 4vw, 48px);
}

.wpcom-ai-athletes-grid-panel {
  gap: clamp(14px, 1.8vw, 24px) !important;
  perspective: 1200px;
}

.wpcom-ai-athletes-grid-panel > .wpcom-ai-grid-card {
  position: relative;
  overflow: hidden !important;
  align-self: stretch !important;
  animation: athlete-card-arrive 620ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-top: 2px solid rgba(207, 46, 46, 0.9) !important;
  border-radius: 18px !important;
  background: linear-gradient(160deg, #191717, #100f0f 75%) !important;
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition:
    transform 420ms cubic-bezier(0.2, 0.7, 0.25, 1),
    border-color 320ms ease,
    box-shadow 420ms ease;
}

.wpcom-ai-athletes-grid-panel > .wpcom-ai-grid-card:nth-child(2) {
  animation-delay: 70ms;
}

.wpcom-ai-athletes-grid-panel > .wpcom-ai-grid-card:nth-child(3) {
  animation-delay: 140ms;
}

.wpcom-ai-athletes-grid-panel > .wpcom-ai-grid-card:nth-child(4) {
  animation-delay: 210ms;
}

.wpcom-ai-athletes-grid-panel > .wpcom-ai-grid-card:nth-child(5) {
  animation-delay: 280ms;
}

.wpcom-ai-athletes-grid-panel > .wpcom-ai-grid-card:nth-child(6) {
  animation-delay: 350ms;
}

.wpcom-ai-grid-card .wpcom-ai-compact-photo {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  background: #171414;
  line-height: 0;
}

.wpcom-ai-grid-card .wpcom-ai-compact-photo::after {
  position: absolute;
  inset: 52% 0 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(12, 10, 10, 0.18));
}

.wpcom-ai-grid-card .wpcom-ai-compact-photo figure,
.wpcom-ai-grid-card .wpcom-ai-compact-photo .wp-block-image {
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
}

.wpcom-ai-grid-card .wpcom-ai-compact-photo img {
  display: block;
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 850ms cubic-bezier(0.2, 0.7, 0.25, 1), filter 600ms ease;
}

.wpcom-ai-grid-card .wpcom-ai-compact-info {
  padding: clamp(22px, 2.5vw, 34px) !important;
}

.wpcom-ai-grid-card .wpcom-ai-compact-info > .wp-block-group:first-child {
  margin-bottom: 16px !important;
}

.wpcom-ai-grid-card .wpcom-ai-compact-info > .wp-block-group:first-child p {
  color: #e56a6e !important;
  font-size: 9px !important;
  letter-spacing: 0.24em !important;
}

.wpcom-ai-grid-card .wpcom-ai-compact-info h2.wp-block-heading {
  margin-top: 4px !important;
  font-size: clamp(23px, 2vw, 30px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
}

.wpcom-ai-grid-card .wpcom-ai-compact-info h3.wp-block-heading {
  color: #ed7779 !important;
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
}

.wpcom-ai-grid-card .wpcom-ai-compact-info p,
.wpcom-ai-grid-card .wpcom-ai-compact-info li {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

.wpcom-ai-grid-card .wpcom-ai-compact-info .wpcom-ai-badge {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055) !important;
}

.wpcom-ai-grid-card .wpcom-ai-compact-info .wpcom-ai-badge p {
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 9px !important;
  letter-spacing: 0.08em !important;
}

.wpcom-ai-grid-card .wpcom-ai-palmares-list {
  padding-left: 1.2em;
}

.wpcom-ai-grid-card .wpcom-ai-palmares-list li {
  padding-left: 2px;
  margin-bottom: 0.45em !important;
}

.wpcom-ai-grid-card .wp-block-separator {
  width: 100%;
  margin-block: 22px !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wpcom-ai-athletes-grid-panel > .wpcom-ai-grid-card:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 255, 255, 0.2) !important;
    border-top-color: #ed7779 !important;
    box-shadow:
      0 30px 72px rgba(0, 0, 0, 0.4),
      0 0 30px rgba(148, 27, 36, 0.12);
  }

  .wpcom-ai-grid-card:hover .wpcom-ai-compact-photo img {
    transform: scale(1.04);
    filter: saturate(1.06);
  }
}

@media (max-width: 1024px) {
  .wpcom-ai-athletes-grid-panel > .wpcom-ai-grid-card {
    border-radius: 15px !important;
  }

  .wpcom-ai-grid-card .wpcom-ai-compact-info {
    padding: clamp(20px, 3vw, 28px) !important;
  }
}

@media (max-width: 600px) {
  .athletes-site-nav {
    min-height: 62px;
    padding-inline: 16px;
    gap: 10px;
  }

  .athletes-brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 7px;
  }

  .athletes-brand-mark {
    flex: 0 0 auto;
    font-size: 16px;
    white-space: nowrap;
  }

  .athletes-brand-name {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    font-size: 8px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .athletes-home-link {
    flex: 0 0 auto;
    min-height: 36px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .wpcom-ai-athletes-section {
    min-height: calc(100svh - 62px);
    padding: 70px 18px 76px !important;
  }

  .wpcom-ai-athletes-section > .wp-block-group:first-child {
    margin-bottom: 38px !important;
  }

  .wpcom-ai-athletes-section > .wp-block-group:first-child h2 {
    font-size: clamp(38px, 11vw, 54px) !important;
  }

  .wpcom-ai-athletes-section > .wp-block-group:first-child > p:last-child {
    margin-top: 18px;
    font-size: 14px !important;
  }

  .wpcom-ai-athletes-tabs .wp-block-tab-list,
  .wp-block-tabs.wpcom-ai-athletes-tabs > .wp-block-tab-list {
    width: 100%;
    justify-content: stretch;
  }

  .wpcom-ai-athletes-tabs .wp-block-tab-list [role="tab"] {
    flex: 1 1 0 !important;
    min-width: 0;
    padding-inline: 10px !important;
    font-size: 9px !important;
    letter-spacing: 0.12em !important;
  }

  .wpcom-ai-athletes-grid-panel {
    gap: 18px !important;
  }

  .wpcom-ai-grid-card .wpcom-ai-compact-info {
    padding: 24px !important;
  }

  .wpcom-ai-grid-card .wpcom-ai-compact-info h2.wp-block-heading {
    font-size: 27px !important;
  }

  .wpcom-ai-grid-card .wpcom-ai-compact-info p,
  .wpcom-ai-grid-card .wpcom-ai-compact-info li {
    font-size: 13px !important;
  }
}

@keyframes athlete-card-arrive {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.wpcom-ai-athletes-section) {
    scroll-behavior: auto;
  }

  .wpcom-ai-athletes-tabs .wp-block-tab-list [role="tab"],
  .wpcom-ai-athletes-grid-panel > .wpcom-ai-grid-card,
  .wpcom-ai-grid-card .wpcom-ai-compact-photo img {
    animation: none !important;
    transition: none !important;
  }
}

.athletes-palmares-reference {
  max-width: 920px;
  margin: -24px auto clamp(34px, 5vw, 58px);
  padding: clamp(20px, 3.5vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.athletes-palmares-reference h2,
.athletes-palmares-reference h3 {
  margin: 0;
  color: #ffffff;
  font-weight: 750;
}

.athletes-palmares-reference h2 {
  font-size: clamp(19px, 2.4vw, 25px);
  letter-spacing: -0.025em;
}

.athletes-palmares-reference > p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.65;
}

.athletes-medal-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 26px;
  list-style: none;
}

.athletes-medal-totals li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 12px;
  font-weight: 650;
}

.athletes-gold-medals {
  color: #ff8585;
}

.athletes-silver-medals {
  color: #d3d8df;
}

.athletes-bronze-medals {
  color: #e3a06f;
}

.athletes-palmares-reference h3 {
  margin-bottom: 12px;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.athletes-competition-glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 8px;
  margin: 0;
}

.athletes-competition-glossary > div {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.athletes-competition-glossary dt {
  color: #f08a8c;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.athletes-competition-glossary dd {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.athletes-palmares-reference > .athletes-glossary-note {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

@media (max-width: 600px) {
  .athletes-palmares-reference {
    margin-top: -18px;
    padding: 18px;
    border-radius: 14px;
  }
}
