.tournament-public-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: #112631 url('courts.webp') center 57% / cover no-repeat;
}
.tournament-public-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}
.tournament-public-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #071c28f2 4%, #0a2431db 43%, #0a243177), linear-gradient(to top, #071c28bd, transparent 70%);
    content: "";
}
.tournament-public-hero-inner { padding-block: clamp(1.8rem, 4vw, 3.6rem); }
.tournament-public-hero h1 { margin: 0; font-size: clamp(2.65rem, 7vw, 5.25rem); line-height: .98; color: #fff; overflow-wrap: anywhere; }
.tournament-public-hero p { margin: .65rem 0 0; color: #e4eef0; }
.tournament-directory-heading, .tournament-public-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.2rem; }
.tournament-directory-heading { justify-content: space-between; margin-bottom: 1.45rem; }
.tournament-back-link { display: inline-flex; align-items: center; gap: .4rem; color: #e4efef; font-weight: 700; margin-bottom: 1.35rem; }
.tournament-back-link:hover, .tournament-back-link:focus-visible { text-decoration: underline; }
.tournament-public-event-identity { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.4rem); }
.tournament-public-event-identity > div { min-width: 0; }
.tournament-public-event-logo { flex: 0 0 auto; width: clamp(3rem, 8vw, 4.75rem); height: auto; aspect-ratio: 1; border-radius: .75rem; object-fit: contain; }
.tournament-public-event-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; overflow-wrap: anywhere; }
.tournament-public-event-meta time { color: #e4fb93; font-weight: 750; }
.tournament-public-actions { margin-top: 1.2rem; }
.tournament-public-actions .tournament-hero-outline { border-color: #ffffffa8; color: #fff; background: #10293699; }
.tournament-public-actions .tournament-hero-outline:hover, .tournament-public-actions .tournament-hero-outline:focus-visible { background: #fff; color: #102936; }
.tournament-public-labels { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .55rem; }
.tournament-public-pill { display: inline-block; padding: .3rem .56rem; border-radius: 20rem; color: #162a1f; background: #edfae6; font-size: .73rem; font-weight: 800; line-height: 1.25; }
.tournament-public-pill + .tournament-public-pill { background: #203846; color: #fff; }

.tournament-directory-card { display: flex; flex-direction: column; min-width: 0; }
.tournament-directory-cover { position: relative; isolation: isolate; display: flex; align-items: end; justify-content: space-between; gap: .5rem; aspect-ratio: 2.65; min-height: 9.3rem; padding: .75rem; background: #183747 url('courts.webp') center / cover no-repeat; }
.tournament-directory-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tournament-directory-cover::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(0deg,#0a2334bf, transparent 78%); }
.tournament-directory-cover .tournament-public-labels { justify-content: end; margin: 0; }
.tournament-directory-date { flex: 0 0 2.85rem; display: grid; place-items: center; padding: .28rem .25rem; border-radius: .62rem; line-height: 1.05; color: #fff; background: #102937; }
.tournament-directory-date span { color: #d8f36b; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.tournament-directory-date strong { font-size: 1.45rem; }
.tournament-directory-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; overflow-wrap: anywhere; }
.tournament-directory-card-body h3 { margin: .42rem 0; }
.tournament-directory-card-body p { margin: .15rem 0 .35rem; }
.tournament-directory-card-body > a.button { margin-top: auto; }
.tournament-directory-card-body .button { align-self: flex-start; }
.tournament-directory-meta { display: flex; flex-wrap: wrap; gap: .25rem .7rem; color: #385e4d; font-size: .8rem; font-weight: 750; }
.tournament-directory-divisions { list-style: none; width: 100%; padding: 0; margin: .55rem 0 .8rem; border-top: 1px solid #dce7df; }
.tournament-directory-divisions li { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid #dce7df; font-size: .84rem; }
.tournament-directory-divisions li > span:last-child { flex-shrink: 0; color: #466358; }

.tournament-public-content { --tournament-line: #dbe6de; --tournament-ink: #14313b; --tournament-soft: #f1f7ef; color: var(--tournament-ink); padding-block: clamp(1.35rem, 4vw, 3.25rem); }
.tournament-public-overview { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(.85rem, 2vw, 1.5rem); align-items: start; margin-bottom: 1.7rem; }
.tournament-public-panel { min-width: 0; padding: clamp(.95rem, 2.45vw, 1.65rem); border: 1px solid var(--tournament-line); border-radius: 1rem; background: #fff; box-shadow: 0 7px 20px #14313b0a; overflow-wrap: anywhere; }
.tournament-public-panel h2 { margin: 0 0 .65rem; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.12; }
.tournament-public-panel p { margin: .4rem 0 .7rem; }
.tournament-public-copy, .tournament-public-guidelines dd, .tournament-public-announcement p { white-space: pre-line; }
.tournament-public-guidelines { display: grid; gap: .65rem; margin: 1rem 0 0; }
.tournament-public-guidelines div { padding-top: .6rem; border-top: 1px solid var(--tournament-line); }
.tournament-public-panel :is(dt,dd) { margin: 0; }
.tournament-public-panel dt { font-weight: 750; }
.tournament-public-panel dd { color: #426057; }
.tournament-public-dates { background: var(--tournament-soft); }
.tournament-public-content .tournament-event-facts { display: grid; gap: 0; margin: 0; }
.tournament-public-content .tournament-event-facts div { padding: .55rem 0; border-bottom: 1px solid var(--tournament-line); }
.tournament-public-content .tournament-event-facts div:last-child { border-bottom: 0; }
.tournament-public-content .tournament-event-facts dt { color: #395b4e; font-size: .78rem; }
.tournament-public-content .tournament-public-legacy-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .9rem; }
.tournament-public-announcement, .tournament-public-content .tournament-division-card { margin-bottom: .85rem; }
.tournament-public-announcement time { color: #426057; font-size: .82rem; font-weight: 750; }
.tournament-public-divisions-heading { margin: 1.4rem 0 .65rem; }
.tournament-public-content .tournament-division-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-bottom: .95rem; }
.tournament-public-content .tournament-division-nav a { padding: .35rem .7rem; border: 1px solid var(--tournament-line); border-radius: 2rem; background: var(--tournament-soft); color: #204637; font-size: .88rem; font-weight: 750; overflow-wrap: anywhere; }
.tournament-public-content .tournament-division-nav a:hover { text-decoration: underline; }
.tournament-public-content .tournament-division-card { scroll-margin-top: 6rem; }
.tournament-public-content .tournament-division-card:target { border-color: #6d944e; }
.tournament-public-content .tournament-match-card { margin: .6rem 0; }

.tournament-confirmed { --roster-line: var(--tournament-line, var(--line)); --roster-card: var(--surface, #fff); --roster-soft: var(--canvas, #edf5ed); margin: 1rem 0; padding: 0; border: 1px solid var(--roster-line); border-radius: .8rem; background: var(--roster-soft); }
.tournament-confirmed > summary { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .7rem; padding: .75rem 2.5rem .75rem .85rem; font-weight: 750; cursor: pointer; list-style: none; }
.tournament-confirmed > summary::-webkit-details-marker { display: none; }
.tournament-confirmed > summary::after { position: absolute; top: 50%; right: .9rem; transform: translateY(-50%); color: inherit; content: '+'; }
.tournament-confirmed[open] > summary::after { content: '−'; }
.tournament-confirmed-count { border-radius: 20rem; padding: .15rem .5rem; background: #dcebd5; color: #21462f; font-size: .76rem; }
.tournament-confirmed .tournament-participant-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    gap: .5rem;
    list-style: none;
    padding: 0 .75rem .75rem;
    margin: 0;
}
.tournament-confirmed .tournament-participant-list li { display: grid; align-content: start; gap: .45rem; min-width: 0; border: 1px solid var(--roster-line); border-radius: .58rem; padding: .55rem .65rem; background: var(--roster-card); }
.tournament-confirmed .draw-avatar { width: 32px; height: 32px; flex-basis: 32px; }
.tournament-confirmed .draw-player-name { font-size: .9rem; font-weight: 700; }

@media (max-width: 740px) {
    .tournament-public-overview { grid-template-columns: minmax(0, 1fr); }
    .tournament-public-hero::before { background: linear-gradient(90deg, #071c28ee, #0a2431a5), linear-gradient(to top, #071c28b8, transparent); }
}
@media (max-width: 480px) {
    .tournament-public-event-identity { align-items: flex-start; }
    .tournament-public-event-logo { margin-top: .3rem; }
    .tournament-directory-heading > .button { align-self: flex-start; }
}
