.rcfly-competition-list {
  display: grid;
  gap: 1.25rem;
  width: min(100vw - 2rem, 1280px);
  margin-inline: calc((100% - min(100vw - 2rem, 1280px)) / 2);
}

.rcfly-registered-pilots {
  display: grid;
  gap: 1.1rem;
  width: min(100vw - 2rem, 1280px);
  margin-inline: calc((100% - min(100vw - 2rem, 1280px)) / 2);
}

.rcfly-competition-list__table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--rcfly-outline-variant, #c1c7ce);
  border-radius: 8px;
  background: var(--rcfly-surface-container-low, #f4f6fa);
}

.rcfly-competition-list__table {
  width: 100%;
  min-width: 1160px;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.rcfly-competition-list__col-name {
  width: 21%;
}

.rcfly-competition-list__col-category {
  width: 10%;
}

.rcfly-competition-list__col-location {
  width: 10%;
}

.rcfly-competition-list__col-date {
  width: 10%;
}

.rcfly-competition-list__col-organizer {
  width: 10%;
}

.rcfly-competition-list__col-registrations {
  width: 8%;
}

.rcfly-competition-list__col-bulletin {
  width: 9%;
}

.rcfly-competition-list__col-results {
  width: 9%;
}

.rcfly-competition-list__col-action {
  width: 10%;
}

.rcfly-competition-list__table th,
.rcfly-competition-list__table td {
  overflow-wrap: anywhere;
  padding: 0.9rem 0.85rem;
  border-block-end: 1px solid var(--rcfly-outline-variant, #c1c7ce);
  color: var(--rcfly-on-surface, #181c20);
  text-align: left;
  vertical-align: top;
}

.rcfly-competition-list__table th {
  background: var(--rcfly-surface-container, #eef1f5);
  color: var(--rcfly-on-surface-variant, #41484d);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: normal;
  text-transform: uppercase;
  word-break: normal;
}

.rcfly-competition-list__table tr:last-child td {
  border-block-end: 0;
}

/* Completed (results available) row styling */
.rcfly-competition--completed td {
  background-color: rgba(230, 255, 237, 0.85);
}

.rcfly-competition--completed {
  border-left: 4px solid #66bb6a;
}

@media (max-width: 760px) {
  .rcfly-competition--completed td {
    background-color: rgba(230, 255, 237, 0.95);
  }
}

.rcfly-competition-list__table th:last-child,
.rcfly-competition-list__table td:last-child {
  min-width: 7.5rem;
  white-space: nowrap;
}

.rcfly-competition-list__table th:nth-child(7),
.rcfly-competition-list__table td:nth-child(7),
.rcfly-competition-list__table th:nth-child(8),
.rcfly-competition-list__table td:nth-child(8),
.rcfly-competition-list__table th:nth-child(9),
.rcfly-competition-list__table td:nth-child(9),
.rcfly-competition-list__table th:nth-child(10),
.rcfly-competition-list__table td:nth-child(10) {
  text-align: center;
}

.rcfly-competition-list__table th:nth-child(4),
.rcfly-competition-list__table td:nth-child(4),
.rcfly-competition-list__table th:nth-child(5),
.rcfly-competition-list__table td:nth-child(5) {
  white-space: nowrap;
}

.rcfly-competition-list__table td:nth-child(7),
.rcfly-competition-list__table td:nth-child(8),
.rcfly-competition-list__table td:nth-child(9),
.rcfly-competition-list__table td:nth-child(10) {
  vertical-align: middle;
}

.rcfly-competition-list__name {
  display: block;
  color: var(--rcfly-on-surface, #181c20);
  font-size: 1rem;
  line-height: 1.35;
}

.rcfly-competition-list__type {
  display: block;
  margin-block-start: 0.25rem;
  color: var(--rcfly-on-surface-variant, #41484d);
  font-size: 0.84rem;
  line-height: 1.4;
}

.rcfly-competition-list__category {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.32rem 0.52rem;
  border-radius: 999px;
  background: var(--rcfly-tertiary-container, #eadcff);
  color: var(--rcfly-tertiary, #65597b);
  font-size: 0.82rem;
  font-weight: 800;
}

.rcfly-competition-list__bulletin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  min-width: 5.75rem;
  padding: 0.46rem 0.72rem;
  border-radius: 999px;
  background: var(--rcfly-primary-container, #c7e7ff);
  color: var(--rcfly-primary, #00658e);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.rcfly-competition-list__count,
.rcfly-competition-list__register,
.rcfly-competition-list__results {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.46rem 0.72rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.rcfly-competition-list__count {
  min-width: 2.2rem;
  background: var(--rcfly-surface-container, #eef1f5);
  color: var(--rcfly-on-surface, #181c20);
}

.rcfly-competition-list__register {
  min-width: 6.4rem;
  background: var(--rcfly-primary, #00658e);
  color: var(--rcfly-on-primary, #fff);
}

.rcfly-competition-list__results {
  min-width: 6.4rem;
  background: var(--rcfly-secondary-container, #e2f6f0);
  color: var(--rcfly-secondary, #00695c);
}

.rcfly-competition-list__count:hover,
.rcfly-competition-list__count:focus,
.rcfly-competition-list__register:hover,
.rcfly-competition-list__register:focus,
.rcfly-competition-list__results:hover,
.rcfly-competition-list__results:focus {
  filter: brightness(0.96);
  text-decoration: none;
}

.rcfly-competition-list__closed {
  color: var(--rcfly-on-surface-variant, #41484d);
  font-size: 0.9rem;
  font-weight: 700;
}

.rcfly-competition-list__bulletin::before {
  content: "";
  width: 0.82rem;
  height: 0.82rem;
  margin-inline-end: 0.38rem;
  background: currentColor;
  clip-path: polygon(42% 0, 58% 0, 58% 54%, 78% 34%, 90% 47%, 50% 88%, 10% 47%, 22% 34%, 42% 54%);
}

.rcfly-competition-list__bulletin:hover,
.rcfly-competition-list__bulletin:focus {
  background: var(--rcfly-primary, #00658e);
  color: var(--rcfly-on-primary, #fff);
  text-decoration: none;
}

.rcfly-competition-list__missing {
  color: var(--rcfly-on-surface-variant, #41484d);
  font-size: 0.9rem;
}

.rcfly-competition-list__empty {
  padding: 1rem;
  border: 1px solid var(--rcfly-outline-variant, #c1c7ce);
  border-radius: 8px;
  background: var(--rcfly-surface-container-low, #f4f6fa);
  color: var(--rcfly-on-surface-variant, #41484d);
}

.rcfly-registration-form__heading {
  overflow: hidden;
  margin-block-end: 1.35rem;
  border: 1px solid var(--rcfly-outline-variant, #c1c7ce);
  border-radius: 8px;
  background: var(--rcfly-surface-container-low, #f4f6fa);
  text-align: center;
}

.rcfly-registration-form__heading h1 {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--rcfly-primary, #00658e);
  color: var(--rcfly-on-primary, #fff);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.25;
}

.rcfly-registration-form__heading p {
  margin: 0;
  padding: 0.7rem 1rem 0;
  color: var(--rcfly-on-surface, #181c20);
  font-size: 1.2rem;
  font-weight: 700;
}

.rcfly-registration-form__heading p:last-child {
  padding-block-end: 0.9rem;
}

.rcfly-registered-pilots__heading {
  margin-block-end: 1.1rem;
}

.rcfly-registered-pilots__table {
  min-width: 1160px;
}

.rcfly-registered-pilots__col-number {
  width: 4%;
}

.rcfly-registered-pilots__col-name {
  width: 21%;
}

.rcfly-registered-pilots__col-junior {
  width: 6%;
}

.rcfly-registered-pilots__col-country {
  width: 8%;
}

.rcfly-registered-pilots__col-club {
  width: 16%;
}

.rcfly-registered-pilots__col-fai {
  width: 12%;
}

.rcfly-registered-pilots__col-fai-id {
  width: 8%;
}

.rcfly-registered-pilots__col-radio {
  width: 11%;
}

.rcfly-registered-pilots__col-status {
  width: 14%;
}

.rcfly-registered-pilots__number,
.rcfly-registered-pilots__table th:nth-child(3),
.rcfly-registered-pilots__table td:nth-child(3),
.rcfly-registered-pilots__table th:nth-child(7),
.rcfly-registered-pilots__table td:nth-child(7) {
  text-align: center;
}

.rcfly-registered-pilots__table th,
.rcfly-registered-pilots__table td {
  overflow-wrap: normal;
  word-break: normal;
}

.rcfly-registered-pilots__table th:last-child,
.rcfly-registered-pilots__table td:last-child {
  min-width: 7.5rem;
  white-space: nowrap;
}

.rcfly-registration-form__consent {
  margin-block: 1.4rem;
  padding-block-start: 1.1rem;
  border-block-start: 1px solid var(--rcfly-outline-variant, #c1c7ce);
}

.rcfly-registration-form__consent h2 {
  margin: 0 0 0.45rem;
  color: var(--rcfly-on-surface, #181c20);
  font-size: 1rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.rcfly-registration-form__consent p {
  max-width: 46rem;
  margin: 0 0 0.75rem;
  color: var(--rcfly-on-surface-variant, #41484d);
  font-size: 0.95rem;
  line-height: 1.55;
}

.rcfly-registration-form__consent .form-item {
  margin-block-start: 1.2rem;
}

.rcfly-registration-form__website-wrap {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 760px) {

  .rcfly-competition-list,
  .rcfly-registered-pilots {
    width: 100%;
    margin-inline: 0;
  }

  .rcfly-competition-list__table {
    min-width: 0;
    table-layout: auto;
  }

  .rcfly-competition-list__table thead {
    display: none;
  }

  .rcfly-competition-list__table,
  .rcfly-competition-list__table tbody,
  .rcfly-competition-list__table tr,
  .rcfly-competition-list__table td {
    display: block;
  }

  .rcfly-competition-list__table tr {
    border-block-end: 1px solid var(--rcfly-outline-variant, #c1c7ce);
    padding: 0.55rem 0;
  }

  .rcfly-competition-list__table tr:last-child {
    border-block-end: 0;
  }

  .rcfly-competition-list__table td {
    display: grid;
    grid-template-columns: minmax(8rem, 0.42fr) 1fr;
    gap: 0.75rem;
    border: 0;
    padding: 0.45rem 0.8rem;
    text-align: left;
  }

  .rcfly-competition-list__table td::before {
    content: attr(data-label);
    color: var(--rcfly-on-surface-variant, #41484d);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
  }

  .rcfly-competition-list__table td:nth-child(7),
  .rcfly-competition-list__table td:nth-child(8),
  .rcfly-competition-list__table td:nth-child(9),
  .rcfly-competition-list__table td:nth-child(10),
  .rcfly-registered-pilots__number,
  .rcfly-registered-pilots__table td:nth-child(3),
  .rcfly-registered-pilots__table td:nth-child(7) {
    text-align: left;
  }
}
