/* HYROX dedicated page + secure admin */
:root {
  --hyrox-yellow: #ffed00;
  --hyrox-black: #050505;
  --hyrox-panel: #0d0d0d;
  --hyrox-panel-2: #141414;
  --hyrox-white: #ffffff;
  --hyrox-muted: rgba(255, 255, 255, 0.72);
  --hyrox-soft: rgba(255, 255, 255, 0.08);
  --hyrox-mid: rgba(255, 255, 255, 0.14);
  --hyrox-cyan: #3df6ff;
  --hyrox-pink: #ff47c7;
  --hyrox-radius: 8px;
  --hyrox-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  transform: translateY(-150%);
  background: var(--hyrox-yellow);
  color: var(--hyrox-black);
  padding: 10px 14px;
  border-radius: var(--hyrox-radius);
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.hyrox-page-nav .logo,
.footer .logo,
.hyrox-admin-back,
.hyrox-admin-foot-link {
  color: var(--hyrox-white);
  text-decoration: none;
}

.hyrox-page-nav .nav-links a.active {
  color: var(--hyrox-yellow);
}

.hyrox-detail-page {
  background: var(--hyrox-black);
}

.hyrox-hero {
  min-height: 92vh;
  margin-top: 80px;
  padding: clamp(90px, 12vw, 150px) 5% clamp(54px, 8vw, 86px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  background-image:
    linear-gradient(90deg, rgba(5, 5, 5, 0.84) 0%, rgba(5, 5, 5, 0.64) 48%, rgba(5, 5, 5, 0.82) 100%),
    var(--hyrox-hero-image);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hyrox-hero::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 237, 0, 0.7), transparent);
}

.hyrox-hero__content,
.hyrox-hero__event {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hyrox-hero__content {
  max-width: 880px;
}

.hyrox-hero h1 {
  font-family: "Inter", sans-serif;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.9;
  margin: 0 0 22px;
  max-width: 10ch;
  text-transform: uppercase;
}

.hyrox-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.hyrox-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hyrox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.hyrox-btn:focus-visible,
.hyrox-filter-bar button:focus-visible,
.hyrox-detail-button:focus-visible,
.hyrox-modal__close:focus-visible,
.hyrox-admin-form input:focus,
.hyrox-admin-form textarea:focus,
.hyrox-admin-form button:focus-visible,
.hyrox-admin-sidebar a:focus-visible {
  outline: 3px solid rgba(255, 237, 0, 0.3);
  outline-offset: 2px;
}

.hyrox-btn--primary {
  background: var(--hyrox-yellow);
  color: var(--hyrox-black);
}

.hyrox-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--hyrox-white);
  border-color: var(--hyrox-mid);
}

.hyrox-btn:hover {
  transform: translateY(-2px);
}

.hyrox-hero__event {
  background: linear-gradient(180deg, #ffffff, #f7f7f0);
  border: 1px solid rgba(255, 237, 0, 0.42);
  border-radius: 24px;
  color: var(--hyrox-black);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hyrox-hero__event .hyrox-eyebrow {
  padding: 0;
  color: rgba(5, 5, 5, 0.62);
  letter-spacing: 0.7px;
}

.hyrox-hero__event .hyrox-eyebrow i {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--hyrox-yellow);
  color: var(--hyrox-black);
  font-size: 0.78rem;
}

.hyrox-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hyrox-yellow);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hyrox-hero__event h2 {
  margin: 14px 0 18px;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--hyrox-black);
}

.hyrox-hero__event ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.hyrox-hero__event li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(5, 5, 5, 0.74);
  font-weight: 800;
}

.hyrox-hero__event li i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--hyrox-black);
  color: var(--hyrox-yellow);
  font-size: 0.82rem;
}

.hyrox-event-pill {
  display: inline-flex;
  margin: 22px 0 0;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(255, 237, 0, 0.18);
  border: 1px solid rgba(5, 5, 5, 0.12);
  color: var(--hyrox-black) !important;
  font-size: 0.82rem !important;
  font-weight: 900;
  line-height: 1.3 !important;
}

.hyrox-mini-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  margin-top: 20px;
  padding: 0 16px 0 18px;
  border-radius: 999px;
  background: var(--hyrox-black);
  color: var(--hyrox-white);
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.22s ease, background 0.22s ease;
}

.hyrox-mini-link:hover {
  transform: translateY(-1px);
  background: #1a1a1a;
}

.hyrox-mini-link i {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--hyrox-yellow);
  color: var(--hyrox-black);
  font-size: 0.78rem;
}

.hyrox-proof-strip {
  background: var(--hyrox-yellow);
  color: var(--hyrox-black);
  padding: 16px 0;
}

.hyrox-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hyrox-proof-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border-radius: var(--hyrox-radius);
  background: rgba(5, 5, 5, 0.08);
}

.hyrox-proof-card i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--hyrox-radius);
  background: var(--hyrox-black);
  color: var(--hyrox-yellow);
}

.hyrox-proof-card__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.hyrox-proof-card strong {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.35rem, 2.15vw, 2rem);
  line-height: 0.94;
  letter-spacing: 0;
  color: var(--hyrox-black);
  white-space: nowrap;
}

.hyrox-proof-card__text > span {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--hyrox-black);
}

.hyrox-section {
  position: relative;
  opacity: 1;
  transform: none;
}

.hyrox-section--separated {
  overflow: hidden;
}

.hyrox-section--separated::before,
.hyrox-section--separated::after {
  content: "";
  position: absolute;
  left: max(24px, calc((100% - 1240px) / 2));
  right: max(24px, calc((100% - 1240px) / 2));
  height: 7px;
  background:
    linear-gradient(var(--hyrox-yellow), var(--hyrox-yellow)) center / 58px 5px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 237, 0, 0.62) 18%, rgba(255, 237, 0, 0.18) 50%, rgba(255, 237, 0, 0.62) 82%, transparent) center / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent) center / 100% 1px no-repeat;
  pointer-events: none;
}

.hyrox-section--separated::before {
  top: 0;
}

.hyrox-section--separated::after {
  bottom: 0;
}

.hyrox-lead {
  color: var(--hyrox-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 780px;
}

.hyrox-lead--narrow {
  max-width: 860px;
  margin-bottom: 28px;
}

.hyrox-intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.hyrox-pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hyrox-pillar-grid article,
.hyrox-challenge-card,
.hyrox-success-card,
.hyrox-content-card,
.hyrox-calendar,
.hyrox-calendar article {
  border-radius: var(--hyrox-radius);
  border: 1px solid var(--hyrox-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.hyrox-pillar-grid article {
  padding: 22px;
}

.hyrox-pillar-grid i,
.hyrox-challenge-card > i {
  color: var(--hyrox-yellow);
  font-size: 1.4rem;
}

.hyrox-pillar-grid h3,
.hyrox-challenge-card h3,
.hyrox-success-card h3,
.hyrox-content-card h3,
.hyrox-calendar h3 {
  margin: 12px 0 8px;
  font-size: 1rem;
  text-transform: uppercase;
}

.hyrox-pillar-grid p,
.hyrox-challenge-card p,
.hyrox-success-card p,
.hyrox-content-card p,
.hyrox-calendar p {
  color: var(--hyrox-muted);
  line-height: 1.65;
  margin: 0;
}

.hyrox-section-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.hyrox-deadline {
  min-width: 260px;
  border: 1px solid rgba(255, 71, 199, 0.25);
  background: rgba(255, 71, 199, 0.08);
  border-radius: var(--hyrox-radius);
  padding: 16px;
  color: var(--hyrox-muted);
}

.hyrox-deadline i,
.hyrox-deadline strong {
  color: var(--hyrox-pink);
}

.hyrox-deadline span,
.hyrox-deadline strong {
  display: block;
}

.hyrox-challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hyrox-challenge-card {
  min-height: 240px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.hyrox-event-section .hyrox-challenge-card {
  min-height: 230px;
  border: 1px solid rgba(255, 237, 0, 0.22);
  border-radius: 24px;
  background-color: white;
  /* background:
    radial-gradient(420px 240px at 100% 0%, rgba(255, 237, 0, 0.2), transparent 58%),
    linear-gradient(180deg, #ffffff, #f7f7f0); */
  color: var(--hyrox-black);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.hyrox-event-section .hyrox-challenge-card > i {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--hyrox-black);
  color: var(--hyrox-yellow);
  font-size: 1rem;
  box-shadow: 0 12px 26px rgba(5, 5, 5, 0.16);
}

.hyrox-event-section .hyrox-challenge-card h3 {
  color: var(--hyrox-black);
}

.hyrox-event-section .hyrox-challenge-card p {
  color: rgba(5, 5, 5, 0.68);
  font-weight: 700;
}

.hyrox-card-index {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: "Inter", sans-serif;
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.08);
}

.hyrox-event-section .hyrox-card-index {
  color: rgba(5, 5, 5, 0.08);
}

.hyrox-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

#classement {
  background: var(--hyrox-black);
  color: var(--hyrox-white);
}

#classement .big-title,
#classement .hyrox-section-head {
  color: var(--hyrox-white);
}

#classement .big-title .yellow {
  color: var(--hyrox-yellow);
}

#classement .tag {
  color: var(--hyrox-yellow);
  border-color: rgba(255, 237, 0, 0.76);
  background: rgba(255, 237, 0, 0.06);
}

.hyrox-filter-bar button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--hyrox-white);
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hyrox-filter-bar button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 237, 0, 0.42);
  background: rgba(255, 237, 0, 0.1);
}

.hyrox-filter-bar button.is-active {
  background: var(--hyrox-yellow);
  color: var(--hyrox-black);
  border-color: var(--hyrox-yellow);
}

.hyrox-table-wrap {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(5, 5, 5, 0.1);
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(5, 5, 5, 0.12);
}

.hyrox-ranking-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.hyrox-ranking-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hyrox-ranking-table th,
.hyrox-ranking-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(5, 5, 5, 0.08);
  text-align: left;
  vertical-align: middle;
}

.hyrox-ranking-table th {
  color: rgba(5, 5, 5, 0.66);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #f8f8f2;
}

.hyrox-ranking-table td {
  color: rgba(5, 5, 5, 0.74);
  font-size: 0.94rem;
}

.hyrox-ranking-table tbody tr {
  transition: background 0.2s ease;
}

.hyrox-ranking-table tbody tr:hover {
  background: rgba(255, 237, 0, 0.1);
}

.hyrox-ranking-table td strong {
  color: var(--hyrox-black);
}

.hyrox-ranking-table td small {
  display: block;
  margin-top: 4px;
  color: rgba(5, 5, 5, 0.54);
}

.hyrox-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-width: 42px;
  min-height: 34px;
  border-radius: 999px;
  background: var(--hyrox-yellow);
  color: var(--hyrox-black);
  font-weight: 900;
}

.hyrox-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 8px 8px 15px;
  border: 1px solid rgba(255, 237, 0, 0.5);
  border-radius: 999px;
  background: var(--hyrox-yellow);
  color: var(--hyrox-black);
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hyrox-detail-button:hover {
  transform: translateY(-1px);
  background: #fff36a;
  box-shadow: 0 12px 24px rgba(255, 237, 0, 0.18);
}

.hyrox-detail-button i {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--hyrox-black);
  color: var(--hyrox-yellow);
  font-size: 0.72rem;
}

.hyrox-row-hidden {
  display: none;
}

.hyrox-modal-open {
  overflow: hidden;
}

.hyrox-modal-open .back-to-top {
  display: none;
}

.hyrox-modal[hidden] {
  display: none;
}

.hyrox-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 32px);
}

.hyrox-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.76);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.hyrox-modal__panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  border-radius: 26px;
  background: #ffffff;
  color: var(--hyrox-black);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hyrox-modal.is-open .hyrox-modal__overlay,
.hyrox-modal.is-open .hyrox-modal__panel {
  opacity: 1;
}

.hyrox-modal.is-open .hyrox-modal__panel {
  transform: translateY(0) scale(1);
}

.hyrox-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(5, 5, 5, 0.1);
  border-radius: 999px;
  background: #f4f4ec;
  color: var(--hyrox-black);
  cursor: pointer;
}

.hyrox-modal__rank {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--hyrox-yellow);
  color: var(--hyrox-black);
  font-weight: 900;
}

.hyrox-modal h3 {
  margin: 18px 48px 6px 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.hyrox-modal__meta {
  margin: 0;
  color: rgba(5, 5, 5, 0.62);
  font-weight: 800;
}

.hyrox-modal__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 16px;
}

.hyrox-modal__stats article,
.hyrox-modal__scores article,
.hyrox-modal__note {
  border: 1px solid rgba(5, 5, 5, 0.1);
  border-radius: 18px;
  background: #f8f8f2;
  padding: 15px;
}

.hyrox-modal__stats span,
.hyrox-modal__scores span,
.hyrox-modal__note span {
  display: block;
  margin-bottom: 6px;
  color: rgba(5, 5, 5, 0.56);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hyrox-modal__stats strong,
.hyrox-modal__scores strong {
  color: var(--hyrox-black);
  font-size: 1.2rem;
}

.hyrox-modal__scores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hyrox-modal__note {
  margin-top: 12px;
}

.hyrox-modal__note p {
  margin: 0;
  color: rgba(5, 5, 5, 0.76);
  line-height: 1.6;
}

.hyrox-success-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hyrox-success-card {
  overflow: hidden;
  background: #0f0f0f;
}

.hyrox-success-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(0.45);
}

.hyrox-success-card div {
  padding: 20px;
}

.hyrox-success-card span {
  display: inline-flex;
  color: var(--hyrox-yellow);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hyrox-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.hyrox-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.hyrox-content-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.25vw, 30px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* background:
    linear-gradient(135deg, rgba(255, 237, 0, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)); */
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.38);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.hyrox-content-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--hyrox-yellow), rgba(255, 237, 0, 0.08));
  opacity: 0.9;
  pointer-events: none;
}

.hyrox-content-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 237, 0, 0.28);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.48);
}

.hyrox-content-card__index {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.055);
  font-family: "Inter", sans-serif;
  font-size: clamp(3.2rem, 5vw, 5rem);
  line-height: 0.82;
  font-weight: 900;
}

.hyrox-content-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.hyrox-content-card__icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--hyrox-yellow);
  color: var(--hyrox-black);
  box-shadow: 0 16px 28px rgba(255, 237, 0, 0.14);
}

.hyrox-content-card__icon i {
  font-size: 1.25rem;
}

.hyrox-content-card__tag {
  display: inline-flex;
  color: var(--hyrox-cyan);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hyrox-content-card h3 {
  margin: 0 0 18px;
  max-width: 13.5em;
  font-size: clamp(1.04rem, 1.35vw, 1.22rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.hyrox-content-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.72;
}

.hyrox-content-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hyrox-content-card__foot > span,
.hyrox-content-card__foot small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.hyrox-content-card__foot > span {
  color: var(--hyrox-yellow);
}

.hyrox-content-card__foot small {
  padding: 9px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.hyrox-content-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--hyrox-yellow);
  color: var(--hyrox-black);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.hyrox-calendar {
  padding: 22px;
  position: sticky;
  top: 100px;
  border: 1px solid rgba(255, 237, 0, 0.34);
  border-radius: 24px;
  background:
    radial-gradient(360px 220px at 100% 0%, rgba(255, 237, 0, 0.14), transparent 58%),
    linear-gradient(180deg, #ffffff, #f7f7f0);
  color: var(--hyrox-black);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
}

.hyrox-calendar .hyrox-eyebrow {
  color: rgba(5, 5, 5, 0.7);
  letter-spacing: 0.7px;
}

.hyrox-calendar .hyrox-eyebrow i {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--hyrox-yellow);
  color: var(--hyrox-black);
  font-size: 0.78rem;
}

.hyrox-calendar h2 {
  margin: 12px 0 18px;
  font-family: "Inter", sans-serif;
  line-height: 1.05;
  color: var(--hyrox-black);
}

.hyrox-calendar article {
  padding: 16px;
  margin-top: 12px;
  border: 1px solid rgba(5, 5, 5, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(5, 5, 5, 0.08);
}

.hyrox-calendar time,
.hyrox-calendar article > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--hyrox-black);
  font-weight: 900;
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
}

.hyrox-calendar time {
  background: var(--hyrox-yellow);
}

.hyrox-calendar article > span {
  color: var(--hyrox-pink);
  background: rgba(255, 71, 199, 0.1);
  margin-left: 8px;
}

.hyrox-calendar h3 {
  color: var(--hyrox-black);
}

.hyrox-calendar p {
  color: rgba(5, 5, 5, 0.68);
  font-weight: 700;
}

.hyrox-final-cta {
  padding: clamp(54px, 8vw, 90px) 0;
  background: var(--hyrox-yellow);
  color: var(--hyrox-black);
  text-align: left;
}

.hyrox-final-cta__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
}

.hyrox-final-cta__media {
  position: relative;
  margin: 0;
  height: clamp(320px, 38vw, 520px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(5, 5, 5, 0.18);
  /* background: var(--hyrox-black); */
  box-shadow: 0 24px 60px rgba(5, 5, 5, 0.22);
}

.hyrox-final-cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 5, 0.14));
  pointer-events: none;
}

.hyrox-final-cta__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hyrox-final-cta__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hyrox-final-cta .tag {
  border-color: var(--hyrox-black);
  color: var(--hyrox-black);
  background: rgba(255, 255, 255, 0.36);
}

.hyrox-final-cta h2 {
  max-width: 820px;
  margin: 0 0 18px;
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  text-transform: uppercase;
}

.hyrox-final-cta__text {
  max-width: 58ch;
  margin: 0 0 26px;
  color: rgba(5, 5, 5, 0.76);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 800;
  line-height: 1.65;
}

.hyrox-final-cta .hyrox-btn--primary {
  background: var(--hyrox-black);
  color: var(--hyrox-yellow);
}

.hyrox-admin-foot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
}

/* Admin */
.hyrox-admin-page {
  background:
    linear-gradient(180deg, rgba(255, 237, 0, 0.06), transparent 260px),
    var(--hyrox-black);
  min-height: 100vh;
}

.hyrox-admin-shell {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px) 0;
}

.hyrox-admin-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.hyrox-admin-header h1 {
  margin: 12px 0 8px;
  font-family: "Inter", sans-serif;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.hyrox-admin-header p,
.hyrox-admin-login p {
  color: var(--hyrox-muted);
  line-height: 1.7;
}

.hyrox-admin-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hyrox-yellow);
  font-weight: 900;
}

.hyrox-admin-logout button,
.hyrox-admin-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--hyrox-yellow);
  color: var(--hyrox-black);
  padding: 12px 20px;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
}

.hyrox-admin-alert {
  border-radius: var(--hyrox-radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--hyrox-mid);
  background: rgba(255, 255, 255, 0.05);
  color: var(--hyrox-white);
}

.hyrox-admin-alert--success {
  border-color: rgba(61, 246, 255, 0.35);
  color: var(--hyrox-cyan);
}

.hyrox-admin-alert--error {
  border-color: rgba(255, 71, 199, 0.35);
  color: #ff8edb;
}

.hyrox-admin-login {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 480px);
  gap: 28px;
  align-items: start;
}

.hyrox-admin-config,
.hyrox-admin-card {
  border: 1px solid var(--hyrox-soft);
  border-radius: var(--hyrox-radius);
  background: rgba(12, 12, 12, 0.94);
  box-shadow: var(--hyrox-shadow);
}

.hyrox-admin-config {
  padding: 24px;
}

.hyrox-admin-config h3 {
  color: var(--hyrox-yellow);
  margin-bottom: 12px;
}

.hyrox-admin-config code,
.hyrox-admin-form code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--hyrox-yellow);
  padding: 3px 6px;
}

.hyrox-admin-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.hyrox-admin-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--hyrox-soft);
  border-radius: var(--hyrox-radius);
  background: #0b0b0b;
}

.hyrox-admin-sidebar a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--hyrox-muted);
  text-decoration: none;
  font-weight: 900;
}

.hyrox-admin-sidebar a:hover,
.hyrox-admin-sidebar a.is-active {
  background: var(--hyrox-yellow);
  color: var(--hyrox-black);
}

.hyrox-admin-panels {
  display: grid;
  gap: 18px;
}

.hyrox-admin-card {
  padding: clamp(18px, 3vw, 28px);
}

.hyrox-admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.hyrox-admin-card-head a {
  color: var(--hyrox-yellow);
  font-weight: 900;
  text-decoration: none;
}

.hyrox-admin-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
}

.hyrox-admin-card h2 i {
  color: var(--hyrox-yellow);
}

.hyrox-admin-card h3 {
  margin: 24px 0 10px;
  color: var(--hyrox-yellow);
  text-transform: uppercase;
}

.hyrox-admin-form {
  display: grid;
  gap: 18px;
}

.hyrox-admin-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hyrox-admin-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hyrox-admin-form .wide {
  grid-column: 1 / -1;
}

.hyrox-admin-form input,
.hyrox-admin-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--hyrox-mid);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--hyrox-white);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.92rem;
}

.hyrox-admin-form textarea {
  min-height: 96px;
  resize: vertical;
}

.hyrox-admin-repeat {
  display: grid;
  gap: 12px;
}

.hyrox-admin-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--hyrox-radius);
  background: rgba(255, 255, 255, 0.025);
}

.hyrox-admin-row--proof {
  grid-template-columns: 1fr 120px 120px 1.5fr;
}

.hyrox-admin-row--challenge {
  grid-template-columns: 160px 140px 1fr 1.4fr 120px;
}

.hyrox-admin-row--leader {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.hyrox-admin-row--success,
.hyrox-admin-row--content,
.hyrox-admin-row--event {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.hyrox-admin-check {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px !important;
  align-self: end;
  min-height: 44px;
}

.hyrox-admin-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--hyrox-yellow);
}

.hyrox-admin-row.is-marked-for-removal {
  border-color: rgba(255, 71, 199, 0.45);
  background: rgba(255, 71, 199, 0.08);
}

.hyrox-admin-add {
  border: 1px dashed rgba(255, 237, 0, 0.35);
  border-radius: var(--hyrox-radius);
  padding: 14px;
}

.hyrox-admin-add summary {
  color: var(--hyrox-yellow);
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.hyrox-admin-add .hyrox-admin-row {
  margin-top: 14px;
}

@media (max-width: 1180px) {
  .hyrox-hero,
  .hyrox-intro-grid,
  .hyrox-content-layout,
  .hyrox-admin-login,
  .hyrox-admin-grid {
    grid-template-columns: 1fr;
  }

  .hyrox-admin-sidebar {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hyrox-challenge-grid,
  .hyrox-success-grid,
  .hyrox-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hyrox-calendar {
    position: static;
  }

  .hyrox-admin-row--challenge,
  .hyrox-admin-row--leader,
  .hyrox-admin-row--success,
  .hyrox-admin-row--content,
  .hyrox-admin-row--event {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hyrox-hero {
    margin-top: 0;
    min-height: auto;
    padding-top: 118px;
  }

  .hyrox-hero h1 {
    max-width: 100%;
  }

  .hyrox-proof-grid,
  .hyrox-pillar-grid,
  .hyrox-challenge-grid,
  .hyrox-success-grid,
  .hyrox-content-grid,
  .hyrox-admin-field-grid,
  .hyrox-admin-row--proof,
  .hyrox-admin-row--challenge,
  .hyrox-admin-row--leader,
  .hyrox-admin-row--success,
  .hyrox-admin-row--content,
  .hyrox-admin-row--event {
    grid-template-columns: 1fr;
  }

  .hyrox-section-head,
  .hyrox-admin-header,
  .hyrox-admin-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hyrox-filter-bar {
    justify-content: flex-start;
  }

  .hyrox-final-cta__inner {
    grid-template-columns: 1fr;
  }

  .hyrox-final-cta__media {
    height: clamp(270px, 58vw, 390px);
  }

  .hyrox-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hyrox-ranking-table {
    min-width: 0;
  }

  .hyrox-ranking-table thead {
    display: none;
  }

  .hyrox-ranking-table,
  .hyrox-ranking-table tbody,
  .hyrox-ranking-table tr,
  .hyrox-ranking-table td {
    display: block;
    width: 100%;
  }

  .hyrox-ranking-table tr {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(5, 5, 5, 0.08);
  }

  .hyrox-ranking-table td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border-bottom: 0;
    padding: 8px 0;
    color: rgba(5, 5, 5, 0.76);
  }

  .hyrox-ranking-table td::before {
    content: attr(data-label);
    color: rgba(5, 5, 5, 0.52);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.72rem;
  }

  .hyrox-detail-button {
    width: fit-content;
  }

  .hyrox-admin-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hyrox-admin-shell {
    width: min(100% - 18px, 1500px);
  }

  .hyrox-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hyrox-hero p {
    max-width: 29ch;
    overflow-wrap: break-word;
  }

  .hyrox-hero__actions,
  .hyrox-admin-logout,
  .hyrox-admin-logout button,
  .hyrox-btn,
  .hyrox-admin-submit {
    width: 100%;
  }

  .hyrox-final-cta {
    padding: 42px 0;
  }

  .hyrox-final-cta__media {
    border-radius: 22px;
    height: clamp(230px, 70vw, 300px);
  }

  .hyrox-final-cta h2 {
    font-size: clamp(1.9rem, 9.8vw, 2.65rem);
    line-height: 1.04;
  }

  .hyrox-proof-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .hyrox-proof-card i {
    width: 38px;
    height: 38px;
  }

  .hyrox-content-card {
    min-height: auto;
    padding: 22px;
    border-radius: 20px;
  }

  .hyrox-content-card__top {
    margin-bottom: 20px;
  }

  .hyrox-content-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .hyrox-content-card h3 {
    max-width: 100%;
  }

  .hyrox-content-card__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .hyrox-ranking-table td {
    grid-template-columns: 1fr;
  }

  .hyrox-ranking-table td::before {
    margin-bottom: -4px;
  }

  .hyrox-detail-button {
    width: fit-content;
  }

  .hyrox-modal {
    align-items: end;
    padding: 10px;
  }

  .hyrox-modal__panel {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 24px 24px 18px 18px;
    padding: 22px;
  }

  .hyrox-modal__stats,
  .hyrox-modal__scores {
    grid-template-columns: 1fr;
  }

  .hyrox-modal h3 {
    margin-right: 44px;
  }

  .hyrox-detail-page .back-to-top {
    display: none;
  }

  .hyrox-admin-sidebar {
    grid-template-columns: 1fr;
  }
}
