.ed-instat {
    --ed-instat-navy: #071d35;
    --ed-instat-blue: #103f70;
    --ed-instat-yellow: #f5d31f;
    --ed-instat-ink: #17354e;
    --ed-instat-muted: #465f76;
    --ed-instat-line: #dce5ed;
    --ed-instat-pale: #f2f5f8;
    background: #fff;
    border: 1px solid var(--ed-instat-line);
    color: var(--ed-instat-ink);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.5;
    margin-block: 1.5rem;
    min-width: 0;
    scroll-margin: 6rem;
}

.ed-instat__header,
.ed-instat__offer {
    background: var(--ed-instat-blue);
    border-top: 3px solid var(--ed-instat-yellow);
    color: #fff;
    padding: clamp(1rem, 3vw, 1.75rem);
}

.ed-instat .ed-instat__header h2,
.ed-instat .ed-instat__offer h2 {
    color: #fff;
    font: 800 clamp(1.65rem, 3.5vw, 2.5rem)/1.1 "Roboto Condensed", Arial, sans-serif;
    margin: 0;
}

.ed-instat .ed-instat__source {
    color: #d6e3ef;
    font-size: 0.875rem;
    margin: 0.6rem 0 0;
}

.ed-instat__header {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: space-between;
}

.ed-instat .ed-instat__section-link {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.ed-instat__filters {
    align-items: end;
    background: var(--ed-instat-pale);
    border-bottom: 1px solid var(--ed-instat-line);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    margin: 0;
    padding: clamp(1rem, 3vw, 1.75rem);
}

.ed-instat__filters label {
    display: grid;
    font-size: 0.875rem;
    font-weight: 700;
    gap: 0.3rem;
    min-width: 0;
}

.ed-instat .ed-instat__filters :is(select, input[type="month"]) {
    background: #fff;
    border: 1px solid #8096a9;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    color: var(--ed-instat-ink);
    font: inherit;
    font-weight: 500;
    margin: 0;
    min-height: 44px;
    padding: 0.55rem;
    width: 100%;
}

.ed-instat .ed-instat__button {
    align-items: center;
    background: var(--ed-instat-yellow);
    border: 1px solid var(--ed-instat-yellow);
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    color: var(--ed-instat-navy);
    cursor: pointer;
    display: inline-flex;
    font: 750 0.9rem/1.2 Inter, Arial, sans-serif;
    justify-content: center;
    margin: 0;
    min-height: 44px;
    padding: 0.55rem 1rem;
    text-align: center;
    text-decoration: none;
    text-transform: none;
}

.ed-instat .ed-instat__button:hover {
    background: #fce46b;
    border-color: #fce46b;
    color: var(--ed-instat-navy);
}

.ed-instat :is(a, button, select, input, .ed-instat__table-wrap):focus-visible {
    outline: 2px solid var(--ed-instat-navy);
    outline-offset: 2px;
}

.ed-instat .ed-instat__table-wrap:focus-visible {
    outline-offset: -2px;
}

.ed-instat__table-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.ed-instat .ed-instat__table {
    border: 0;
    border-collapse: collapse;
    color: var(--ed-instat-ink);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    margin: 0;
    min-width: 31rem;
    width: 100%;
}

.ed-instat .ed-instat__table :is(th, td) {
    border: 0;
    border-bottom: 1px solid var(--ed-instat-line);
    padding: 0.7rem clamp(0.55rem, 1.65vw, 1rem);
    text-align: right;
    vertical-align: middle;
}

.ed-instat .ed-instat__table thead th {
    background: var(--ed-instat-navy);
    color: #fff;
    font-size: 0.8125rem;
}

.ed-instat .ed-instat__table thead .ed-instat__metric {
    background: var(--ed-instat-yellow);
    color: var(--ed-instat-navy);
}

.ed-instat .ed-instat__table td {
    white-space: nowrap;
}

.ed-instat .ed-instat__table :is(th, td):nth-child(2) {
    min-width: 8.5rem;
    text-align: left;
}

.ed-instat .ed-instat__table tbody tr:nth-child(even) {
    background: var(--ed-instat-pale);
}

.ed-instat .ed-instat__table tbody .ed-instat__metric {
    background: #fff7d4;
    color: var(--ed-instat-navy);
}

.ed-instat__team {
    color: var(--ed-instat-muted);
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
}

.ed-instat .ed-instat__note {
    color: var(--ed-instat-muted);
    font-size: 0.875rem;
    margin: 0;
    padding: 1rem clamp(1rem, 3vw, 1.75rem);
}

.ed-instat__match {
    border-top: 1px solid var(--ed-instat-line);
}

.ed-instat__match-header {
    background: var(--ed-instat-blue);
    color: #fff;
    padding: 1rem clamp(1rem, 3vw, 1.75rem);
}

.ed-instat .ed-instat__match-header h3 {
    color: #fff;
    font: 800 1.5rem/1.15 "Roboto Condensed", Arial, sans-serif;
    margin: 0;
    scroll-margin: 6rem;
}

.ed-instat__match-filters {
    background: var(--ed-instat-pale);
    border-bottom: 1px solid var(--ed-instat-line);
    display: grid;
    gap: 0.9rem 1.25rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    padding: clamp(1rem, 3vw, 1.75rem);
}

.ed-instat__filters--detail {
    background: transparent;
    border: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0;
    scroll-margin: 6rem;
}

.ed-instat__match-detail {
    padding: clamp(1rem, 3vw, 1.75rem);
}

.ed-instat .ed-instat__match-detail :is(h4, h5) {
    color: var(--ed-instat-navy);
    font: 800 1.3rem/1.25 "Roboto Condensed", Arial, sans-serif;
    margin: 0;
}

.ed-instat .ed-instat__detail-note {
    color: var(--ed-instat-muted);
    font-size: 0.875rem;
    margin: 0.3rem 0 0.9rem;
}

.ed-instat__detail-tables {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    margin-top: 1rem;
}

.ed-instat__detail-card {
    border: 1px solid var(--ed-instat-line);
    min-width: 0;
}

.ed-instat .ed-instat__detail-card h5 {
    padding: 0.75rem 1rem;
}

.ed-instat .ed-instat__detail-card .ed-instat__detail-note {
    margin-inline: 1rem;
}

.ed-instat__detail-scroll {
    max-block-size: 26rem;
    overflow: auto;
    overscroll-behavior: contain;
}

.ed-instat .ed-instat__table--detail {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 0;
}

.ed-instat .ed-instat__table--detail thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.ed-instat .ed-instat__table--detail :is(th, td) {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.ed-instat .ed-instat__table--detail :is(th, td):first-child {
    text-align: left;
}

.ed-instat .ed-instat__table--detail :is(th, td):nth-child(2) {
    min-width: 0;
    text-align: right;
}

.ed-instat__offer {
    align-items: center;
    display: grid;
    gap: clamp(1rem, 3.5vw, 2rem);
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.48fr);
}

.ed-instat .ed-instat__offer-description {
    color: #fff;
    margin: 0.85rem 0 0;
    max-width: 34rem;
}

.ed-instat__subscription {
    background: var(--ed-instat-navy);
    display: grid;
    gap: 0.8rem;
    padding: clamp(1rem, 2.25vw, 1.35rem);
}

.ed-instat .ed-instat__price {
    align-items: baseline;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.875rem;
    gap: 0.35rem;
    justify-content: center;
    margin: 0;
}

.ed-instat__price strong {
    font: 800 clamp(1.6rem, 3vw, 2.2rem)/1 "Roboto Condensed", Arial, sans-serif;
}

.ed-instat .ed-instat__sign-in {
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.4;
    padding-block: 0.2rem;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.ed-instat :is(.ed-instat__header, .ed-instat__offer) a:focus-visible {
    outline-color: #fff;
}

.ed-instat__sr-only {
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@media (max-width: 660px) {
    .ed-instat__filters:not(.ed-instat__filters--detail) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ed-instat__match-filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .ed-instat__offer {
        grid-template-columns: 1fr;
    }
}
