/* Shared compact orange cards for the tournament and league catalogs. */
body:is(.tfp-tournament-orange,.tfp-directory-orange){--toc-orange:#f47b16;--toc-dark:#b64c05;--toc-peach:#fff0e3;--toc-line:#ffbc84;--toc-ink:#10263e;background:#f0f5f9!important}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-intro{margin:7px 0 0;color:#526479;font-size:15px;line-height:1.5}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-tabs a[aria-current]{background:#102e43!important;border-color:#102e43!important;color:#fff!important}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-search-submit{background:var(--toc-orange)!important}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-list-groups{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start;gap:18px}
body:is(.tfp-tournament-orange,.tfp-directory-orange)[data-orange-masonry="1"] .dir-list-groups{grid-auto-rows:4px;grid-auto-flow:row dense;row-gap:0}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row,
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-cycle{position:relative;grid-column:auto!important;align-self:start;min-width:0;min-height:0;margin:0;padding:18px!important;border:1.5px solid var(--toc-orange)!important;border-radius:16px;background:#fff;box-shadow:0 5px 18px #25354b08;overflow:visible}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row:hover,
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-cycle:hover{border-color:#d75e06!important;box-shadow:0 8px 22px #e9771010}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row{display:grid;grid-template-columns:74px minmax(0,1fr) minmax(0,1fr);grid-template-areas:"city city city" "date copy copy" "date status slots" "actions actions actions";gap:12px 14px!important;align-content:start}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row:has(.toc-categories){grid-template-areas:"city city city" "date copy copy" "date status slots" "categories categories categories" "actions actions actions"}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-citybar{display:flex;grid-area:city;align-items:center;justify-content:space-between;gap:10px;min-width:0;min-height:47px;margin:-18px -18px 2px;padding:6px 14px 6px 18px;border-radius:14px 14px 0 0;background:linear-gradient(100deg,#ffebda,#fff5ed)}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-city{display:flex;align-items:center;gap:9px;min-width:0;color:var(--toc-ink);font-size:25px;font-weight:800;line-height:1.2;letter-spacing:-.025em;text-transform:uppercase;overflow-wrap:anywhere}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-city svg{flex:0 0 22px;width:22px;height:26px;fill:var(--toc-orange);color:var(--toc-orange)}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-city>span{min-width:0}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-citybar .dir-row__favorite{position:static;grid-area:auto;flex:0 0 40px;align-self:center;justify-self:auto;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:8px;background:transparent;color:#15334d;font-size:27px;line-height:1;box-shadow:none}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-citybar .dir-row__favorite:hover{background:#ffdfc3}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-citybar .dir-row__favorite.is-active{color:var(--toc-dark)}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date{position:static;display:flex;grid-area:date;flex-direction:column;align-items:center;justify-content:center;gap:3px;align-self:start;width:74px;height:auto;min-height:95px;margin:0;padding:9px 5px;border:0;border-radius:12px;background:var(--toc-orange);color:#fff;box-shadow:none;text-align:center}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date strong{margin:0;color:#fff;font-size:32px;font-weight:800;line-height:1}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date span{color:#fff;font-size:18px;font-weight:750;line-height:1.1}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date small{margin:2px 0 0;color:#fff;font-size:12px;font-weight:650;line-height:1.1}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date.is-undated{min-height:88px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .is-undated strong,
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .is-undated span{font-size:14px;line-height:1.3;font-weight:650}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__copy{display:flex;grid-area:copy;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;margin:0;padding:0!important}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-kind,
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-kind{display:inline-flex;align-items:center;max-width:100%;padding:3px 9px;border-radius:8px;background:#ffebd2;color:#8f3f06;font-size:11px;font-weight:750;line-height:1.4;text-transform:uppercase;overflow-wrap:anywhere}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__name,
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-name{display:block;margin:0;color:var(--toc-ink);font-size:19px;font-weight:750;line-height:1.25;letter-spacing:-.025em;text-decoration:none;overflow-wrap:anywhere}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__name:hover,
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-name:hover{color:#ae4906;text-decoration:underline;text-underline-offset:3px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__event-date{display:none}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__status{grid-area:status;min-width:0;margin:0;align-self:center}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__slots{display:flex;grid-area:slots;flex-direction:column;align-items:flex-end;gap:5px;justify-self:stretch;min-width:0;color:#526479;font-size:11px;line-height:1.4;text-align:right;overflow-wrap:anywhere}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__slots progress{width:min(130px,100%);height:6px;accent-color:var(--toc-orange)}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-categories{display:flex;grid-area:categories;flex-wrap:wrap;gap:6px;min-width:0}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-categories>span{max-width:100%;padding:4px 9px;border-radius:20px;background:#ffecd9;color:#8f3e05;font-size:11px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row>.dir-row__actions{display:flex;grid-area:actions;align-items:center;gap:9px;margin:0!important;padding:0;min-width:0}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row>.dir-row__actions>.dir-row__details{display:flex;align-items:center;justify-content:center;gap:9px;flex:1;min-width:0;min-height:44px;width:auto;max-width:100%;margin:0!important;padding:10px 14px;border:1px solid var(--toc-orange);border-radius:10px;background:var(--toc-orange);color:#fff;font-size:14px;font-weight:700;line-height:1.4;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;box-shadow:none}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row>.dir-row__actions>.dir-row__details:hover{background:#dd650c;border-color:#dd650c;color:#fff}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row>.dir-row__actions>.dir-row__details.toc-secondary{border-color:#b9cbd9;background:#f5f8fb;color:#19354f}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-actions-menu>summary{border-color:#e9c9ac;background:#fffaf5;color:#844316}

/* Cycles use the same card shell, city strip, date and orange badge. */
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-cycle{display:flex;flex-direction:column;gap:14px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-head{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:start;gap:14px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-date{min-width:0}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-identity{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-next{margin:0;color:#617084;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-details{min-width:0;border:1px solid #f2c6a2;border-radius:11px;background:#fff}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-details>summary{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:7px;min-width:0;min-height:46px;padding:10px 12px;border:0;border-radius:10px;background:#fff4eb;color:#102a43;font-size:13px;line-height:1.35;text-align:left;list-style:none;cursor:pointer}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-details>summary::-webkit-details-marker{display:none}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-details>summary::after{display:none!important}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-details>summary>strong{flex:1;min-width:100px;font-weight:700}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-layers{flex:0 0 20px;color:#df690e;font-size:25px;line-height:1}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-chevron{flex:0 0 15px;color:#17354d;font-size:20px;line-height:1;transition:transform 220ms ease}
body:is(.tfp-tournament-orange,.tfp-directory-orange) [aria-expanded="true"]>.toc-chevron{transform:rotate(180deg)}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-reveal{min-width:0}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-stage-list{display:flex;flex-direction:column;gap:0;margin:0;padding:0;min-width:0}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-cycle-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;padding:10px;border-top:1px solid #f0dece}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-show-more,
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-classification{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;width:auto;max-width:100%;margin:0;padding:4px 0;border:0;border-radius:0;background:transparent;color:#173b57;font:600 11px/1.4 Inter,system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px;text-align:left;box-shadow:none;cursor:pointer;overflow-wrap:anywhere}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .leagues-page :is(a,button,summary):focus-visible{outline:3px solid #e98c3c;outline-offset:3px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) [hidden]{display:none!important}
@media(max-width:760px){
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-filters{display:block}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-filters__chips{display:flex!important;flex-wrap:nowrap;gap:7px;overflow-x:auto;margin:12px 0 0;padding:0 0 5px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-chip{flex:0 0 auto;min-height:38px;white-space:nowrap}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-view-control{display:none!important}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-list-groups{grid-template-columns:minmax(0,1fr)!important}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row,
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-cycle{padding:14px!important}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-citybar{margin:-14px -14px 0;padding-left:14px;min-height:44px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-city{font-size:23px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row{grid-template-columns:68px minmax(0,1fr) minmax(0,1fr);gap:11px 10px!important}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date{width:68px;min-height:90px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__name,
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-name{font-size:18px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-head{grid-template-columns:68px minmax(0,1fr);gap:11px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-details>summary{padding:10px;gap:6px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-cycle-footer{padding:8px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-show-more,
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-classification{min-height:44px;font-size:10px}
}

/* Compact revision. Cycle layout is isolated from the old regional selectors. */
body:is(.tfp-tournament-orange,.tfp-directory-orange) .leagues-page{padding-top:16px!important}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-hero{margin-bottom:12px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-hero h1{font-size:26px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-intro{margin-top:4px;font-size:12px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-tabs{margin-bottom:14px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-tabs a{min-height:38px;padding-top:6px;padding-bottom:6px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-location{margin-bottom:10px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-location__heading h2{font-size:20px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) #directorySearchForm .dir-search-submit{background:var(--toc-orange)!important}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row,
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-cycle{padding:12px!important;border-width:1px!important;border-radius:12px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row{grid-template-columns:52px minmax(0,1fr) minmax(0,1fr);gap:8px 10px!important}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-citybar{min-height:35px;margin:-12px -12px 0;padding:3px 8px 3px 12px;border-radius:11px 11px 0 0}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-city{gap:6px;font-size:19px;line-height:1.2}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-city svg{flex-basis:17px;width:17px;height:21px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-citybar .dir-row__favorite{flex-basis:32px;width:32px;min-width:32px;height:32px;min-height:32px;font-size:22px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date{width:52px;min-height:66px;gap:2px;padding:6px 3px;border-radius:8px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date strong{font-size:25px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date span{font-size:12px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date small{margin-top:1px;font-size:10px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date.is-undated{min-height:66px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .is-undated strong,
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .is-undated span{font-size:11px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__copy{gap:4px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-kind,
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-kind{padding:2px 7px;border-radius:6px;font-size:10px;line-height:1.3}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__name,
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-name{font-size:16px;line-height:1.25;word-break:normal;white-space:normal;overflow-wrap:break-word}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row>.dir-row__actions>.dir-row__details{min-height:38px;padding:7px 10px;border-radius:8px;font-size:12px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-categories{gap:4px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-categories>span{padding:3px 7px;font-size:10px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-cycle{gap:8px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-head{display:grid;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto;grid-template-areas:none;align-items:start;gap:10px;width:100%;min-width:0;margin:0;padding:0}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-date{display:block;grid-area:auto;grid-column:1;grid-row:1;width:52px;min-width:0;margin:0;padding:0}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-identity{display:flex;grid-area:auto;grid-column:2;grid-row:1;flex-direction:column;align-items:flex-start;gap:4px;width:100%;min-width:0;margin:0;padding:0}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-next{font-size:10px;line-height:1.4}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-details{margin:0;padding:0;border-radius:8px;background:#fff}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-details>summary{min-height:36px;gap:5px;padding:7px 9px;border-radius:7px;font-size:12px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-layers{flex-basis:16px;font-size:20px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-chevron{font-size:17px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-cycle-footer{gap:4px 8px;padding:5px 8px}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-show-more,
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-classification{min-height:32px;font-size:10px}
@media(max-width:760px){
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .leagues-page{padding-top:12px!important}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .dir-hero h1{font-size:23px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-intro{display:none}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row,
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-cycle{padding:10px!important}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-citybar{margin:-10px -10px 0;padding-left:10px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-city{font-size:18px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row{grid-template-columns:48px minmax(0,1fr) minmax(0,1fr);gap:8px!important}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date{width:48px;min-height:60px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date strong{font-size:23px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date span{font-size:11px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date small{font-size:9px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__date.is-undated{min-height:60px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .dir-row__name,
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-name{font-size:15px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-head{grid-template-columns:48px minmax(0,1fr);gap:8px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-date{width:48px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-details>summary{min-height:40px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row>.dir-row__actions>.dir-row__details{min-height:44px}
 body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-show-more,
 body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-classification{min-height:40px}
}

/* Native SVG controls: a stable soft-orange field and a rotating arrow. */
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-chevron{display:inline-grid;place-items:center;flex:0 0 28px;width:28px;height:28px;padding:0;border:1px solid #f5b77f;border-radius:8px;background:#ffe8d3;color:#a54b09;font-size:0;line-height:1;transform:none;transition:background-color 180ms ease,border-color 180ms ease}
body:is(.tfp-tournament-orange,.tfp-directory-orange) [aria-expanded="true"]>.toc-chevron{transform:none;background:#ffdbb8;border-color:#ec9a50}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-chevron svg{display:block;width:16px;height:16px;transform:rotate(0deg);transition:transform 220ms cubic-bezier(.2,.75,.25,1)}
body:is(.tfp-tournament-orange,.tfp-directory-orange) [aria-expanded="true"]>.toc-chevron svg{transform:rotate(180deg)}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-layers{display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;width:18px;height:20px;font-size:0;line-height:1;color:#db650c}
body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-layers svg{display:block;width:18px;height:18px}
@media(prefers-reduced-motion:reduce){body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-chevron,body:is(.tfp-tournament-orange,.tfp-directory-orange) .toc-chevron svg{transition:none}}

/* Omit the date column completely when no event date was entered. */
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row.toc-no-date{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"city city" "copy copy" "status slots" "actions actions"}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList)>.dir-row.toc-no-date:has(.toc-categories){grid-template-areas:"city city" "copy copy" "status slots" "categories categories" "actions actions"}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-head.toc-no-date{grid-template-columns:minmax(0,1fr)}
body:is(.tfp-tournament-orange,.tfp-directory-orange) :is(#tournamentsList,#leaguesList) .toc-cycle-head.toc-no-date>.toc-cycle-identity{grid-column:1}

html.tfp-directory-document:has(#toc-stage-dialog[open]) {
  overflow: hidden;
}

/* Open the displayed tournament from the collapsed card. */
body.tfp-tournament-orange #tournamentsList .toc-cycle-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
}

body.tfp-tournament-orange #tournamentsList .toc-cycle-availability .dir-status {
  padding: 2px 6px;
  font-size: 10px;
  line-height: 1.3;
}

body.tfp-tournament-orange #tournamentsList .toc-cycle-next {
  font-size: 12px;
}

body.tfp-tournament-orange #tournamentsList .toc-cycle-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

body.tfp-tournament-orange #tournamentsList :is(.toc-cycle-open, .toc-cycle-roster) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.tfp-tournament-orange #tournamentsList .toc-cycle-open {
  flex: 1 1 auto;
  justify-content: space-between;
  background: #b64c05;
  color: #fff;
}

body.tfp-tournament-orange #tournamentsList .toc-cycle-open:hover {
  background: #923b03;
}

body.tfp-tournament-orange #tournamentsList .toc-cycle-roster {
  flex: 0 0 auto;
  justify-content: center;
  min-width: 64px;
  max-width: 42%;
  border-color: #c8d5e1;
  background: #fff;
  color: #15354c;
  cursor: pointer;
}

body.tfp-tournament-orange #tournamentsList .toc-cycle-roster:hover {
  background: #fff4eb;
  border-color: #e9b887;
}

/* Each stage is a full row link. Organizer actions are separate controls. */
body.tfp-tournament-orange #tournamentsList .toc-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid #e2e9ef;
  background: #fff;
}

body.tfp-tournament-orange #tournamentsList .toc-stage:last-child {
  border-bottom: 0;
}

body.tfp-tournament-orange #tournamentsList .toc-stage.is-current {
  background: #fff7ed;
}

body.tfp-tournament-orange #tournamentsList .toc-stage-link {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  color: #132c45;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.tfp-tournament-orange #tournamentsList .toc-stage-link:hover {
  background: #fff0e3;
}

body.tfp-tournament-orange #tournamentsList .toc-stage-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
}

body.tfp-tournament-orange #tournamentsList .toc-stage-meta {
  color: #526479;
  font-size: 12px;
}

body.tfp-tournament-orange #tournamentsList .toc-stage-meta:empty {
  display: none;
}

body.tfp-tournament-orange #tournamentsList :is(.toc-cycle-open, .toc-stage-link) svg {
  flex: 0 0 18px;
}

body.tfp-tournament-orange #tournamentsList .toc-stage-manage {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #18384f;
  cursor: pointer;
}

body.tfp-tournament-orange #tournamentsList .toc-stage-manage:hover {
  background: #ffe9d5;
}

body.tfp-tournament-orange #tournamentsList .toc-stage-options {
  margin-right: 4px;
}

body.tfp-tournament-orange #tournamentsList .toc-stage-options > summary {
  width: 44px;
  min-height: 44px;
}

body.tfp-tournament-orange #tournamentsList .toc-stage-options .dir-actions-menu__body {
  left: auto;
  right: 0;
  max-width: calc(100vw - 40px);
}

body.tfp-tournament-orange #tournamentsList .toc-stage-options .dir-row__delete > span {
  display: inline;
}

/* Native modal stays above the cards and keeps long lists inside its scroll area. */
body.tfp-tournament-orange #toc-stage-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(36rem, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: min(42rem, calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e9c7a7;
  border-radius: 18px;
  background: #fff;
  color: var(--toc-ink);
  box-shadow: 0 18px 65px #08172640;
}

body.tfp-tournament-orange #toc-stage-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body.tfp-tournament-orange #toc-stage-dialog:not([open]) {
  display: none;
}

body.tfp-tournament-orange #toc-stage-dialog::backdrop {
  background: #0c23368c;
}

body.tfp-tournament-orange #toc-stage-dialog.toc-stage-dialog--manage {
  width: min(27rem, calc(100% - 32px));
}

#toc-stage-dialog .toc-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #efd7c2;
  background: #fff0e3;
  overflow-wrap: anywhere;
}

#toc-stage-dialog .toc-panel-kicker {
  margin: 0 0 4px;
  color: #91400b;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

#toc-stage-dialog .toc-panel-title {
  margin: 0;
  font-size: clamp(19px, 4vw, 23px);
  font-weight: 750;
  line-height: 1.2;
}

#toc-stage-dialog .toc-panel-context {
  margin: 5px 0 0;
  color: #4f6071;
  font-size: 13px;
  line-height: 1.4;
}

#toc-stage-dialog .toc-panel-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e9c7a7;
  border-radius: 10px;
  background: #fff9f4;
  color: #68340c;
  cursor: pointer;
}

#toc-stage-dialog .toc-panel-content {
  min-height: 0;
  min-width: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}

#toc-stage-dialog .toc-panel-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e2e9ef;
  background: #fbfcfd;
}

#toc-stage-dialog .toc-panel-footer[hidden] {
  display: none;
}

#toc-stage-dialog .toc-panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: auto;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid #c8d5e1;
  border-radius: 9px;
  background: #fff;
  color: #15354c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

#toc-stage-dialog .toc-panel-link.is-primary {
  border-color: #b64c05;
  background: #b64c05;
  color: #fff;
}

#toc-stage-dialog .toc-panel-link.is-danger {
  border-color: #e4bdc2;
  background: #fff7f8;
  color: #942e40;
}

#toc-stage-dialog .toc-panel-management {
  display: grid;
  gap: 8px;
}

#toc-stage-dialog .toc-panel-management .toc-panel-link {
  width: 100%;
}

#toc-stage-dialog .toc-panel-link > span {
  display: inline;
}

#toc-stage-dialog :is(button, a):focus-visible {
  outline: 2px solid #a34a0c;
  outline-offset: 2px;
}

#toc-stage-dialog :is(.toc-roster-summary, .toc-panel-state) {
  margin: 0;
  color: #516577;
  font-size: 13px;
  line-height: 1.5;
}

#toc-stage-dialog .toc-panel-state {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f7fa;
}

#toc-stage-dialog .toc-panel-retry {
  margin-top: 8px;
}

#toc-stage-dialog .toc-roster {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

#toc-stage-dialog .toc-roster-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #e2e9ef;
  border-radius: 9px;
  background: #f7fafc;
}

#toc-stage-dialog .toc-roster-row.is-incomplete {
  border-color: #f0d1ab;
  background: #fff6e8;
}

#toc-stage-dialog .toc-roster-number {
  display: grid;
  place-items: center;
  min-height: 27px;
  border-radius: 6px;
  background: #e7eef4;
  color: #355269;
  font-size: 11px;
  font-weight: 750;
}

#toc-stage-dialog .toc-roster-members {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 12px;
  min-width: 0;
  padding-top: 3px;
}

#toc-stage-dialog .toc-roster-name {
  min-width: 0;
  color: #122a40;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#toc-stage-dialog .toc-roster-name:only-child,
#toc-stage-dialog .toc-roster-note {
  grid-column: 1 / -1;
}

#toc-stage-dialog .toc-roster-note {
  color: #85430d;
  font-size: 12px;
  font-weight: 650;
}

@media (max-width: 600px) {
  body.tfp-tournament-orange #toc-stage-dialog,
  body.tfp-tournament-orange #toc-stage-dialog.toc-stage-dialog--manage {
    inset: auto max(8px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    width: auto;
    margin: 0;
  }

  #toc-stage-dialog .toc-panel-footer > a {
    flex: 1 1 130px;
  }
}

@media (max-width: 420px) {
  #toc-stage-dialog .toc-roster-members {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-height: 440px) {
  body.tfp-tournament-orange #toc-stage-dialog[open] {
    display: block;
    overflow-y: auto;
  }
}

/* These two status actions are independent of the legacy mobile filter rail. */
body.tfp-tournament-orange #tournamentQuickStatus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 4px;
  box-sizing: border-box;
  width: min(100%, 22rem);
  min-width: 0;
  padding: 4px;
  border: 1px solid #c9d5df;
  border-radius: 12px;
  background: #fff;
}

body.tfp-tournament-orange #tournamentQuickStatus .dir-status-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f2f6fa;
  color: #19354f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

body.tfp-tournament-orange #tournamentQuickStatus .dir-status-tab svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #a44b0b;
}

body.tfp-tournament-orange #tournamentQuickStatus .dir-status-tab:hover {
  background: #fff0e3;
}

body.tfp-tournament-orange #tournamentQuickStatus .dir-status-tab[aria-pressed="true"] {
  border-color: #102e43;
  background: #102e43;
  color: #fff;
}

body.tfp-tournament-orange #tournamentQuickStatus .dir-status-tab[aria-pressed="true"] svg {
  color: #ffd1ac;
}

body.tfp-tournament-orange #directoryAdvanced .dir-status-field {
  grid-column: 1 / -1;
  min-width: 0;
}

body.tfp-tournament-orange #emptySearchState .dir-empty__country {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  color: #8f400b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.tfp-tournament-orange #emptySearchState .dir-empty__country[hidden] {
  display: none;
}

@media (max-width: 760px) {
  body.tfp-tournament-orange #tournamentQuickStatus {
    width: 100%;
    margin-top: 10px;
  }
}

