table {
    border: 1px solid #ccc;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    width: 100%;
    table-layout: fixed;
}

table caption {
    font-size: 1.5em;
    margin: .5em 0 .75em;
}

table tr {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: .35em;
}

table th,
table td {
    padding: .625em;
    text-align: center;
}

table th {
    font-size: .85em;
    letter-spacing: .1em;
    text-transform: uppercase;
}

@media screen and (max-width: 870px) {
    table {
        border: 0;
    }

    table caption {
        font-size: 1.3em;
    }

    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: .625em;
    }

    table td {
        border-bottom: 1px solid #ddd;
        display: block;
        /* font-size: .8em; */
        text-align: right;
    }

    table td::before {
        /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        font-size: .8em;
    }

    table td:last-child {
        border-bottom: 0;
    }
}

/* general styling */
body {
    font-family: "Open Sans", sans-serif;
    line-height: 1.25;
    color: #323232;
}

h1 {
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
}

h1 {
    font-size: 3em;
    text-align: center;
    margin-bottom: 0;
}

h1 span {
    border-bottom: 3px solid #323232;
}

h2 {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
        "wdth"100;
}

h2 {
    /* font-size: 3em; */
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

h3 {
    font-size: 1em;
    text-align: center;
    margin-top: 0;
    color: #888888;
}

.notice {
    background-color: #f8f8f8;
    border: 1px solid #dddddd;
    padding: 50px;
    margin: 50px 3%;
    text-align: center;
}

.notice.notice-error {
    background-color: #ffe0e0;
    border: 1px solid #cb7979;
}

@ screen and (max-width: 870px) {
    .notice {
        margin: 50px 0;
    }
}

.potentialData {
    color: #0073c6;
}

.potentialData big {
    font-size: 150%;
    font-weight: bold;
}

.cwlSummary {
    text-align: center;
}

.clanName {
    font-weight: bold;
    font-size: 2em;
}

/* Select Wrapper (for befores & afters) */
.custom-select {
    /* wrapper style */
    position: relative;
    display: block;
    max-width: 400px;
    min-width: 180px;
    margin: 0 auto;

    select {
        /* Select Reset */
        border: 1px solid #b6b6b6;
        outline: none;
        background: transparent;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 0;
        margin: 0;
        display: block;
        width: 100%;
        cursor: pointer;
        /* custom select appearance */
        padding: 12px 55px 15px 15px;
        font-size: 20px;
    }

    /* the down arrow */
    &:after {
        position: absolute;
        right: 0;
        top: 0;
        width: 50px;
        height: 100%;
        line-height: 50px;
        content: '\25BC';
        text-align: center;
        z-index: -1;
        background: #b6b6b6;
        color: #fff;
        font-size: 18px;
    }
}

@ screen and (max-width: 870px) {
    .notice {
        margin: 50px 0;
    }

    .custom-select {
        max-width: 100%;
    }
}

/* @keyframes growProgressBar {
      0%, 33% { --pgPercentage: 0; }
      100% { --pgPercentage: var(--value); }
    } */
/* @property --pgPercentage {
      syntax: '<number>';
      inherits: false;
      initial-value: 0;
  } */
div[role="progressbar"] {
    --size: 5rem;
    --fg: #369;
    --bg: #e2e2e2;
    --pgPercentage: var(--value);
    /* animation: growProgressBar 3s 1 forwards; */
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto;
    background:
        radial-gradient(closest-side, white 80%, transparent 0 99.9%, white 0),
        conic-gradient(var(--fg) calc(var(--pgPercentage) * 1%), var(--bg) 0);
    font-family: Helvetica, Arial, sans-serif;
    font-size: calc(var(--size) / 5);
    /* color: var(--fg); */
}

div[role="progressbar"]::before {
    counter-reset: percentage var(--valueToDisplay);
    content: counter(percentage) '/' attr(data-teamSize);
}

.cwlSummary {
    display: flex;
    align-items: center;
    gap: 10rem;
}
.cwlSummaryImage {
    width: 40%;
    text-align: right;
}
.cwlSummaryText {
    width: 60%;
    text-align: left;
}
@media (max-width: 768px) {
  .cwlSummary {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .cwlSummaryImage {
      width: 100%;
      text-align: center;
  }
  .cwlSummaryText {
      width: 100%;
      text-align: center;
  }
}
.ratings {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all rows horizontally */
    gap: 0.2em;
  }

  .rating-row {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .rating-stars {
    width: 6em; /* fixed width to align digits */
    display: inline-flex;
    justify-content: flex-end;
  }

  .rating-stars i {
    margin-right: 2px;
  }

  .rating-number {
    text-align: left;
    padding-left: 0.4em;
    min-width: 1.5em;
  }
