.club-results-control {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 107, 114, 0.18);
}

.club-results-trigger {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #146b72;
  border-radius: 4px;
  color: #fffef9;
  background: #103a40;
  font: 700 13px/1.2 "DM Sans", sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.club-results-trigger:not(:disabled):hover {
  background: #146b72;
  transform: translateY(-1px);
}

.club-results-trigger:disabled {
  border-color: #bac9c5;
  color: #667a76;
  background: #e9efeb;
  cursor: not-allowed;
}

.club-results-trigger:focus-visible,
.club-results-dialog button:focus-visible,
.club-results-dialog a:focus-visible {
  outline: 3px solid #d4ed68;
  outline-offset: 3px;
}

.club-results-dialog {
  box-sizing: border-box;
  width: min(980px, calc(100vw - 28px));
  max-width: 980px;
  max-height: min(88dvh, 900px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8e5df;
  border-radius: 16px;
  color: #103a40;
  background: #fffef9;
  box-shadow: 0 24px 90px rgba(4, 24, 29, 0.34);
  font-family: "DM Sans", sans-serif;
}

.club-results-dialog:not([open]) {
  display: none;
}

.club-results-dialog[open] {
  display: flex;
  flex-direction: column;
}

.club-results-dialog::backdrop {
  background: rgba(4, 24, 29, 0.7);
  backdrop-filter: blur(4px);
}

.club-results-dialog__header {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px 18px;
  color: #fffef9;
  background: #103a40;
}

.club-results-dialog__eyebrow {
  margin: 0 0 7px;
  color: #d4ed68;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.club-results-dialog__header h2 {
  margin: 0;
  color: inherit;
  font: 800 clamp(20px, 3vw, 28px)/1.2 Manrope, sans-serif;
}

.club-results-dialog__date {
  margin: 7px 0 0;
  color: rgba(255, 254, 249, 0.78);
  font-size: 13px;
}

.club-results-dialog__close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 254, 249, 0.42);
  border-radius: 50%;
  color: #fffef9;
  background: transparent;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.club-results-dialog__close:hover {
  color: #103a40;
  background: #d4ed68;
}

.club-results-dialog__body {
  min-height: 0;
  overflow: auto;
  padding: 20px 26px 24px;
  overscroll-behavior: contain;
}

.club-results-dialog__body,
.club-results-swim__main {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.club-results-dialog__body::-webkit-scrollbar,
.club-results-swim__main::-webkit-scrollbar {
  display: none !important;
  width: 0;
  height: 0;
}

.club-results-dialog input[type="number"] {
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

.club-results-dialog input[type="number"]::-webkit-inner-spin-button,
.club-results-dialog input[type="number"]::-webkit-outer-spin-button,
.club-results-dialog *::-webkit-scrollbar-button {
  display: none !important;
  -webkit-appearance: none !important;
}

.club-results-swimmer + .club-results-swimmer {
  margin-top: 22px;
}

.club-results-swimmer__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 12px;
  margin-bottom: 8px;
}

.club-results-swimmer__heading h3 {
  margin: 0;
  color: #103a40;
  font: 800 18px/1.3 Manrope, sans-serif;
}

.club-results-swimmer__heading p {
  margin: 0;
  color: #5c726f;
  font-size: 12px;
}

.club-results-swimmer__list {
  overflow: hidden;
  border: 1px solid #d9e5df;
  border-radius: 9px;
  background: #fff;
}

.club-results-relays {
  margin-top: 28px;
}

.club-results-relays__heading {
  margin: 0 0 9px;
  color: #103a40;
  font: 800 18px/1.3 Manrope, sans-serif;
}

.club-results-relays__list {
  overflow: hidden;
  border: 1px solid #d9e5df;
  border-radius: 9px;
  background: #f4f8f3;
}

.club-results-relay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  padding: 14px 15px;
}

.club-results-relay + .club-results-relay {
  border-top: 1px solid #e0eae3;
}

.club-results-relay__event {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #173d40;
  font-size: 14px;
  font-weight: 700;
}

.club-results-swim {
  display: block;
  padding: 13px 15px;
}

.club-results-swim + .club-results-swim {
  border-top: 1px solid #e8eeea;
}

.club-results-swim__main {
  display: flex;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px 8px;
  overflow-x: auto;
}

.club-results-swim__event {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  color: #173d40;
  font-size: 14px;
  font-weight: 700;
}

.club-results-swim__event-block {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.club-results-swim__medals {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
}

.club-results-swim__medal {
  display: inline-flex;
  flex: 0 0 auto;
  max-width: 100%;
  align-items: center;
  padding: 5px 8px;
  border-radius: 4px;
  color: #171717;
  background: #ffdc4a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.club-results-swim__medal--gold {
  color: #171717;
  background: #ffdc4a;
}

.club-results-swim__medal--silver {
  color: #20252a;
  background: #c2c9d0;
}

.club-results-swim__medal--bronze {
  color: #fff;
  background: #9b5b36;
}

.club-results-swim__phase {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  color: #35665b;
  background: #e9f3ec;
  font-size: 10px;
  font-weight: 700;
}

.club-results-swim__relay-split {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  color: #425d78;
  background: #e7eef5;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.club-results-swim__time {
  flex: 0 0 auto;
  color: #146b72;
  font: 800 17px/1.15 Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.club-results-swim__details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin-top: 7px;
  color: #5c726f;
  font-size: 11px;
}

.club-results-swim__record {
  display: inline-flex;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  padding: 5px 8px;
  border-radius: 4px;
  color: #fff;
  background: #8b6500;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.club-results-swim__record--national {
  background: #c62828;
}

.club-results-swim__record--club {
  background: #3673b8;
}

.club-results-swim__record--absolute {
  background: #17477d;
}

.club-results-swim__record--gold {
  background: #8b6500;
}

.club-results-swim__record--silver {
  background: #5c6872;
}

.club-results-swim__record--bronze {
  background: #814622;
}

.club-results-swim__record--medal {
  background: #35665b;
}

.club-results-swim__notes,
.club-results-swim__link {
  margin: 7px 0 0;
  font-size: 12px;
}

.club-results-swim__notes {
  color: #5c726f;
}

.club-results-swim__link {
  color: #146b72;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.club-results-dialog__footer {
  flex: none;
  padding: 11px 26px;
  border-top: 1px solid #e4ece7;
  color: #667a76;
  background: #f6f8f4;
  font-size: 11px;
}

@media (max-width: 600px) {
  .club-results-dialog__header {
    padding: 18px 18px 15px;
  }

  .club-results-dialog__body {
    padding: 17px 15px 20px;
  }

  .club-results-swim {
    padding: 12px;
  }

  .club-results-swim__main {
    gap: 7px 8px;
  }

  .club-results-relay {
    gap: 8px;
    padding: 12px;
  }

  .club-results-dialog__footer {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .club-results-trigger {
    transition: none;
  }
}
