.stallion-winners {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: calc(var(--default-spacing)*2);
  font-family: Meta, "Helvetica Neue", Helvetica, Arial, sans-serif;

  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  .date {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: var(--default-spacing);

  }

  time {
    font-size: 16px;
    width: 42px;
  }

  .content {
    display: flex;
    gap: var(--default-spacing);
  }

  .details {
    line-height: 1.2;
    flex: 1;

    .horse-and-race-name {
      color: var(--color-medium-blue);
      font-weight:bold;
      margin-bottom: calc(var(--default-spacing)/2);
      font-size: 18px;
    }

    .horse-details {
      font-size: 16px;

      a {
        color: var(--color-black);
        font-weight: bold;

        &:hover, &:active, &:focus {
          text-decoration: underline;

        }
      }
    }
  }
}

.stallion-statistics {
  #search {
    display: flex;
    gap: var(--default-spacing);
    place-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--default-spacing);

    & > * {
      width: 100%;
    }

    @media (width >= 568px) {
      gap: calc(var(--default-spacing)*2);
      flex-wrap: nowrap;

      & > * {
        width: min(360px, 100%);
      }
    }
  }

  #search > div {
    /* optional styling */
    display: flex;
    flex-direction: row;
    gap: 4px;

    label {
      display: none;
    }
  }

  .buttoncont {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;

    a {
      display: inline-block;
    }

    .formbutton--submit.button {
      font-size: 14px;
      padding: 8px 20px;
      background-color: transparent;
      border: 1px solid var(--color-medium-blue);
      line-height: 14px;
      margin-right:var(--default-spacing);

      &:hover {
        background-color: var(--color-medium-blue);
        color: white;
      }
    }
  }

  .stats__heading {
    font-weight: bold;
    color: var(--color-medium-blue);
    font-size: 16px;
    margin-top: calc(var(--default-spacing));
    margin-bottom: 10px;
  }

  .stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 0 32px;
  }

      /* Cards */
  .card {}
  .card .stat {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: fit-content(50%) fit-content(50%);
    justify-content: space-between;
    border-bottom: 1px solid black;
    padding: 8px 0 2px;
    width: 100%;
    font-size: 16px;
    margin-bottom: 12px;
  }
  .card .stat .stat__field {

  }
  .card .stat .stat__value {
    text-align: right;
  }



}


/* Filters */
.stallion-statistics .stats__filters--periods {
  margin: 16px 0;
}
/*.stallion-statistics .stats__filters input[type=radio] {*/
/*  margin: 0;*/
/*  vertical-align: middle;*/
/*}*/

.stallion-statistics .stats__filters {

  input:where([type="radio"]) {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    vertical-align: top;
    margin: calc(0.75em - 11px) 0.25rem 0 0;
    border: 2px solid #d9d9d9;
    border-radius: 4px;
    background: #d9d9d9 no-repeat center center;
  }

  input[type="radio"] {
    border-radius: 50%;
  }

  input:where([type="radio"]):where(:active:not(:disabled), :focus) {
    border-color: #d9d9d9;
    outline: none;
  }

  input:where([type="radio"]):disabled {
    background: #eee;
  }

  input[type="radio"]:checked {
    background-image: url('/modules/custom/pweb/images/circle-solid-full.svg');
  }

}

.stallion-statistics .stats__filters--regions input[type=radio] {
  display: none;
}

.stallion-statistics .stats__filters label {
  display: inline-block;
  white-space: nowrap;
  color: var(--color-black);
  font-size: 12px;
  line-height: 1.25;
  margin: 0 8px 0 0;
  cursor: pointer;
}
.stallion-statistics .stats__filters--regions label {
  font-size: 14px;
  line-height: 1.25;
}
.stallion-statistics .stats__filters input[type=radio]:checked + label {
  font-weight: bold;
}
.stallion-statistics .stats__filters input[type=radio]:checked + label,
.stallion-statistics .stats__filters label:hover {
  text-decoration: none;
}
