.ec-page {
    --ec-blue: #09689f;
    --ec-blue-dark: #07496f;
    --ec-gold: #e9aa24;
    --ec-ink: #17364b;
    --ec-line: #d9e5ec;
    --ec-muted: #627583;
    --ec-red: #bf2633;
    --ec-red-dark: #961b27;
    --ec-surface: #f4f8fa;
    --ec-white: #fff;
    color: var(--ec-ink);
    padding-bottom: 2.5rem;
}

.ec-page h1,
.ec-page h2,
.ec-page h3,
.ec-page p {
    margin-top: 0;
}

.ec-kicker {
    color: var(--ec-blue);
    display: block;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
    margin-bottom: .55rem;
    text-transform: uppercase;
}

.ec-hero {
    align-items: center;
    background: linear-gradient(125deg, #edf8fd 0%, #fff 48%, #fff2f3 100%);
    border: 1px solid var(--ec-line);
    border-radius: 1.25rem;
    box-shadow: 0 16px 38px rgba(23, 54, 75, .12);
    display: grid;
    gap: clamp(1.75rem, 4vw, 3.5rem);
    grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr);
    overflow: hidden;
    padding: clamp(1.75rem, 4vw, 3.25rem);
    position: relative;
}

.ec-hero::after {
    background: var(--ec-red);
    bottom: 0;
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
}

.ec-hero h1 {
    color: var(--ec-blue-dark);
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.02;
    margin-bottom: .75rem;
}

.ec-tagline {
    color: var(--ec-red);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 800;
    margin-bottom: .9rem;
}

.ec-intro {
    color: var(--ec-muted);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 660px;
}

.ec-inline-link {
    color: var(--ec-blue-dark);
    display: inline-block;
    font-weight: 750;
    text-decoration: none;
}

.ec-inline-link:hover,
.ec-inline-link:focus {
    color: var(--ec-red-dark);
    text-decoration: underline;
}

.ec-logo-lockup {
    align-items: center;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(9, 104, 159, .15);
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    min-height: 210px;
    padding: 1.5rem;
}

.ec-logo-lockup img {
    height: auto;
    max-height: 98px;
    max-width: 42%;
    object-fit: contain;
}

.ec-logo-plus {
    color: var(--ec-muted);
    font-size: 1.8rem;
    font-weight: 700;
}

.ec-highlights {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.5rem;
}

.ec-highlight {
    align-items: flex-start;
    background: var(--ec-white);
    border: 1px solid var(--ec-line);
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    min-width: 0;
    padding: 1.25rem;
}

.ec-highlight-icon {
    align-items: center;
    background: #e7f4fa;
    border-radius: .85rem;
    color: var(--ec-blue);
    display: inline-flex;
    flex: 0 0 48px;
    font-size: 1.35rem;
    height: 48px;
    justify-content: center;
}

.ec-highlight:nth-child(3) .ec-highlight-icon {
    background: #fbeaec;
    color: var(--ec-red);
}

.ec-highlight h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: .25rem;
}

.ec-highlight p {
    color: var(--ec-muted);
    font-size: .92rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.ec-format,
.ec-tournament-center {
    margin-top: 3.5rem;
}

.ec-section-heading {
    margin-bottom: 1.35rem;
}

.ec-section-heading h2,
.ec-center-header h2 {
    color: var(--ec-blue-dark);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 850;
    letter-spacing: -.03em;
    margin-bottom: .35rem;
}

.ec-section-heading p,
.ec-center-header p,
.ec-schedule-heading p {
    color: var(--ec-muted);
    margin-bottom: 0;
}

.ec-format-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ec-format-step {
    background: var(--ec-surface);
    border-left: 4px solid var(--ec-blue);
    border-radius: .9rem;
    padding: 1.35rem;
}

.ec-step-number {
    color: var(--ec-gold);
    display: block;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .1em;
    margin-bottom: .6rem;
}

.ec-format-step h3 {
    font-size: 1.12rem;
    font-weight: 800;
    margin-bottom: .4rem;
}

.ec-format-step p {
    color: var(--ec-muted);
    line-height: 1.55;
    margin-bottom: 0;
}

.ec-tournament-center {
    background: var(--ec-surface);
    border: 1px solid var(--ec-line);
    border-radius: 1.2rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.ec-center-header {
    align-items: end;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
}

.ec-season-bar {
    align-items: center;
    background: var(--ec-white);
    border: 1px solid var(--ec-line);
    border-radius: .9rem;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
}

.ec-season-field {
    align-items: center;
    display: flex;
    font-weight: 800;
    gap: .75rem;
    margin-bottom: 0;
}

.ec-season-select {
    min-width: 150px;
}

.ec-season-total {
    color: var(--ec-red-dark);
    font-size: 1.05rem;
    font-weight: 850;
    text-align: right;
}

.ec-status,
.ec-login-callout {
    align-items: center;
    border-radius: .9rem;
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
}

.ec-status {
    background: #fff5e1;
    border: 1px solid #efcf88;
    color: #684b0c;
}

.ec-status > i,
.ec-login-callout > div > i {
    font-size: 1.45rem;
}

.ec-status strong,
.ec-status span {
    display: block;
}

.ec-status span {
    font-size: .92rem;
    margin-top: .15rem;
}

.ec-login-callout {
    background: #e9f5fb;
    border: 1px solid #b9dce9;
    justify-content: space-between;
}

.ec-login-callout > div {
    align-items: center;
    display: flex;
    gap: .75rem;
    font-weight: 750;
}

.ec-button {
    border: 0;
    border-radius: .75rem;
    cursor: pointer;
    display: inline-block;
    font-weight: 800;
    line-height: 1.25;
    min-height: 44px;
    padding: .72rem 1rem;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.ec-button--primary {
    background: var(--ec-blue);
    color: var(--ec-white) !important;
}

.ec-button--primary:hover,
.ec-button--primary:focus {
    background: var(--ec-blue-dark);
    box-shadow: 0 7px 16px rgba(7, 73, 111, .22);
}

.ec-button--donate {
    background: var(--ec-red);
    color: var(--ec-white) !important;
}

.ec-button--donate:hover,
.ec-button--donate:focus {
    background: var(--ec-red-dark);
    box-shadow: 0 7px 16px rgba(150, 27, 39, .2);
}

.ec-button--results {
    background: var(--ec-gold);
    color: #382500 !important;
}

.ec-button--results:hover,
.ec-button--results:focus {
    background: #cf8f09;
    box-shadow: 0 7px 16px rgba(141, 93, 0, .18);
}

.ec-tournament-table {
    border-collapse: separate;
    border-spacing: 0 1rem;
    margin-bottom: 0;
    width: 100%;
}

.ec-tournament-table tbody tr {
    background: var(--ec-white);
    box-shadow: 0 8px 22px rgba(23, 54, 75, .09);
}

.ec-tournament-table td {
    border-bottom: 1px solid var(--ec-line);
    border-top: 1px solid var(--ec-line);
    padding: 1.15rem;
    vertical-align: middle;
}

.ec-tournament-table td:first-child {
    border-left: 1px solid var(--ec-line);
    border-radius: .9rem 0 0 .9rem;
    width: 60%;
}

.ec-tournament-table td:last-child {
    border-radius: 0 .9rem .9rem 0;
    border-right: 1px solid var(--ec-line);
}

.ec-tournament-name {
    color: var(--ec-blue-dark);
    display: block;
    font-size: 1.08rem;
    font-weight: 850;
    margin-bottom: .65rem;
}

.ec-date-list {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.5rem;
    margin: 0;
}

.ec-date-list > div {
    display: flex;
    gap: .4rem;
}

.ec-date-list dt {
    color: var(--ec-muted);
    font-size: .82rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
}

.ec-date-list dd {
    font-size: .9rem;
    margin: 0;
}

.ec-grid-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: flex-end;
}

.ec-login-required,
.ec-results-note {
    color: var(--ec-red-dark);
    display: block;
    font-size: .88rem;
    font-weight: 750;
}

.ec-schedule-heading {
    align-items: end;
    border-top: 1px solid var(--ec-line);
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr);
    margin-top: 2.5rem;
    padding-top: 2rem;
}

.ec-schedule-heading h3 {
    color: var(--ec-blue-dark);
    font-size: 1.45rem;
    font-weight: 850;
    margin-bottom: 0;
}

.ec-table-wrap {
    overflow: visible;
}

@media (max-width: 991.98px) {
    .ec-hero {
        grid-template-columns: 1fr;
    }

    .ec-logo-lockup {
        min-height: 165px;
    }

    .ec-highlights,
    .ec-format-grid {
        grid-template-columns: 1fr;
    }

    .ec-highlight {
        align-items: center;
    }

    .ec-center-header,
    .ec-schedule-heading {
        align-items: start;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .ec-page {
        padding-bottom: 1rem;
    }

    .ec-hero {
        border-radius: 1rem;
        padding: 1.35rem;
    }

    .ec-logo-lockup {
        min-height: 140px;
        padding: 1rem;
    }

    .ec-logo-lockup img {
        max-height: 78px;
    }

    .ec-format,
    .ec-tournament-center {
        margin-top: 2.5rem;
    }

    .ec-center-header p,
    .ec-schedule-heading p {
        max-width: none;
    }

    .ec-season-bar,
    .ec-login-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .ec-season-field {
        align-items: stretch;
        flex-direction: column;
    }

    .ec-season-total {
        text-align: left;
    }

    .ec-login-callout .ec-button {
        width: 100%;
    }

    .ec-table-wrap {
        overflow: visible;
    }

    .ec-tournament-table,
    .ec-tournament-table tbody,
    .ec-tournament-table tr,
    .ec-tournament-table td {
        display: block;
        width: 100% !important;
    }

    .ec-tournament-table {
        border-spacing: 0;
    }

    .ec-tournament-table tbody tr {
        border: 1px solid var(--ec-line);
        border-radius: .9rem;
        margin-top: 1rem;
        overflow: hidden;
    }

    .ec-tournament-table td,
    .ec-tournament-table td:first-child,
    .ec-tournament-table td:last-child {
        border: 0;
        border-radius: 0;
    }

    .ec-tournament-table td:last-child {
        border-top: 1px solid var(--ec-line);
    }

    .ec-grid-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .ec-logo-lockup {
        flex-direction: column;
    }

    .ec-logo-lockup img {
        max-width: 78%;
    }

    .ec-logo-plus {
        font-size: 1.4rem;
        line-height: 1;
    }

    .ec-tournament-center {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .ec-grid-actions,
    .ec-grid-actions .ec-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ec-button {
        transition: none;
    }
}
