.tfpe{--event-ink:#172c43;--event-muted:#52677d;--event-blue:#175ec7;--event-line:#dce5ee;color:var(--event-ink);font-family:Inter,system-ui,sans-serif;min-width:0;box-sizing:border-box}
.tfpe *{box-sizing:border-box}.tfpe [hidden]{display:none!important}.tfpe a{text-decoration:none}.tfpe-page{max-width:1240px;margin:auto;padding:28px 24px 70px}.tfpe h1,.tfpe h2,.tfpe h3,.tfpe p{margin:0}.tfpe h1{font-size:clamp(26px,4vw,42px);line-height:1.15}.tfpe h2{font-size:22px;line-height:1.3}.tfpe h3{font-size:18px}.tfpe p{line-height:1.55}.tfpe-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:.13em;margin-bottom:10px;color:#536d85}.tfpe-hero{padding:32px;border-radius:24px;background:linear-gradient(125deg,#071c31,#103752);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:28px;margin:18px 0}.tfpe-hero .tfpe-eyebrow,.tfpe-hero p{color:#bdd8ed}.tfpe-hero p{margin-top:12px}.tfpe-hero__stats{display:flex;gap:24px;flex-shrink:0}.tfpe-hero__stats span{font-size:12px;color:#c7d9e8}.tfpe-hero__stats strong{display:block;color:#bdf657;font-size:30px}.tfpe-section{background:#fff;border:1px solid var(--event-line);border-radius:20px;padding:24px;margin-top:20px}.tfpe-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.tfpe-section-title p,.tfpe-note{color:var(--event-muted);font-size:14px}.tfpe-note{margin:12px 0!important}.tfpe-btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:11px 18px;border-radius:12px;border:1px solid transparent;background:var(--event-blue);color:#fff!important;font:inherit;font-weight:750;font-size:14px;cursor:pointer}.tfpe-btn--secondary{background:#eff5ff;color:#174e99!important;border-color:#c8dcf7}.tfpe-btn--danger{background:#fff1f2;color:#aa243a!important;border-color:#f3cbd2}.tfpe-btn:disabled,.tfpe-text-btn:disabled{opacity:.45;cursor:default}.tfpe-text-btn{font:inherit;font-size:13px;font-weight:750;background:none;border:0;color:#1755a5;padding:9px 3px;cursor:pointer}.tfpe-text-btn--danger{color:#aa243a}.tfpe-btn:focus-visible,.tfpe-text-btn:focus-visible,.tfpe-tabs a:focus-visible{outline:3px solid #64b5ff;outline-offset:3px}.tfpe-category-nav{border:1px solid var(--event-line);border-radius:18px;background:#fff;padding:18px 20px;margin:0 0 20px}.tfpe-category-nav__heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}.tfpe-category-nav__heading a{color:var(--event-ink)}.tfpe-category-nav__heading strong{font-size:18px}.tfpe-category-nav__heading .tfpe-eyebrow{margin-bottom:5px}.tfpe-tabs{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;padding:3px 2px 10px;scrollbar-width:thin}.tfpe-tabs a{flex:0 0 auto;white-space:nowrap;padding:11px 15px;border:1px solid var(--event-line);border-radius:11px;font-size:13px;font-weight:750;color:#34516e;background:#f7fafd}.tfpe-tabs a.is-active{background:#175ec7;border-color:#175ec7;color:#fff}.tfpe-category-nav__spec{font-size:13px;color:var(--event-muted);margin-top:9px!important}.tfpe-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:12px}.tfpe-category{--category-color:#175ec7;min-width:0;border:1px solid var(--event-line);border-inline-start:4px solid var(--category-color);background:#fff;border-radius:13px;padding:13px;display:flex;flex-direction:column;gap:8px;box-shadow:0 2px 7px #17324b0a}.tfpe-category:nth-child(5n+2){--category-color:#963ccc}.tfpe-category:nth-child(5n+3){--category-color:#008374}.tfpe-category:nth-child(5n+4){--category-color:#c85912}.tfpe-category:nth-child(5n+5){--category-color:#b52f68}.tfpe-category h3{font-size:17px;line-height:1.25;color:#172c43;overflow-wrap:anywhere}.tfpe-category p{font-size:13px;color:var(--event-muted)}.tfpe-tag{display:inline-flex;padding:5px 9px;border-radius:7px;background:#f0f4fa;color:#38516b;font-size:11px;font-weight:750}.tfpe-tag--open{background:#dcf5d1;color:#245615}.tfpe-category__footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:8px;border-top:1px solid #e4ebf3}.tfpe-category__footer strong{font-size:14px}.tfpe-category .tfpe-btn{background:var(--category-color)}.tfpe-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tfpe label:not(.tfpe-check){display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;font-weight:700;color:#29415b}.tfpe input:not([type=checkbox]),.tfpe select,.tfpe textarea{width:100%;min-width:0;min-height:44px;padding:11px 12px;border:1px solid #c7d5e4;border-radius:10px;background:#fff;color:#17324b;font:inherit;font-weight:500;font-size:15px;outline:none}.tfpe input:focus,.tfpe select:focus,.tfpe textarea:focus{border-color:#2672d9;box-shadow:0 0 0 3px #2672d91a}.tfpe input:disabled,.tfpe select:disabled{opacity:.55}.tfpe-wide{grid-column:1/-1}.tfpe-check{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;font-weight:600;font-size:14px;margin:16px 0}.tfpe-check input{width:19px;height:19px;accent-color:#175ec7;flex-shrink:0}.tfpe-creator{padding:22px;border:1px solid #c4d5ed;background:#f5f9ff;border-radius:18px;margin:18px 0}.tfpe-category-editor{display:flex;flex-direction:column;gap:14px}.tfpe-category-edit{padding:18px;border-radius:16px;border:1px solid #d6e2ef;background:#fff}.tfpe-category-edit__head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.tfpe-category-edit__head strong{max-width:60%;overflow-wrap:anywhere}.tfpe-category-edit__head>div{display:flex;gap:12px}.tfpe-flash,.tfpe-error{border:1px solid #b9e7c6;background:#edf9f0;color:#245836;padding:13px 16px;border-radius:12px;margin-bottom:18px!important;font-size:14px}.tfpe-error,.tfpe-flash--error{background:#fff0f2;border-color:#f0c0ca;color:#a32840}.tfpe-schedule-list{display:flex;flex-direction:column;gap:10px}.tfpe-match{border:1px solid var(--event-line);border-radius:14px;padding:16px;display:grid;grid-template-columns:125px 1fr auto;gap:18px;align-items:center;background:#fff}.tfpe-match__time{color:#173e65;font-size:17px;font-weight:800}.tfpe-match__time small{display:block;font-weight:600;font-size:12px;margin-top:4px;color:var(--event-muted)}.tfpe-match__players{margin:7px 0!important;font-weight:750;color:#172c43;overflow-wrap:anywhere}.tfpe-match details{grid-column:1/-1}.tfpe-match summary{cursor:pointer;color:#1755a5;font-size:13px;font-weight:700}.tfpe-match .tfpe-form-grid{grid-template-columns:repeat(4,minmax(0,1fr));padding-top:16px}.tfpe-save-row{margin-top:18px;display:flex;gap:12px;flex-wrap:wrap}.tfpe-empty{padding:22px;border:1px dashed #bdcddd;border-radius:14px;background:#f8fbff;color:#53677c;font-size:14px}.tfpe-courts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.tfpe-court-input{background:#f4f8fd;padding:10px;border-radius:10px}.tfpe-court-input label{margin-bottom:8px}.tfpe-subnav{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.tfpe-form-grid textarea{resize:vertical}.tfpe-page .tfpe-section>p{color:var(--event-muted)}
@media(max-width:1000px){.tfpe-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.tfpe-hero{align-items:flex-start;flex-direction:column;gap:20px}.tfpe-match .tfpe-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tfpe-page{padding:18px 14px 48px}.tfpe-hero{padding:23px;border-radius:18px}.tfpe-hero__stats{gap:22px}.tfpe-hero__stats strong{font-size:25px}.tfpe-category-nav{padding:15px}.tfpe-category-nav__heading{align-items:flex-start;flex-direction:column;gap:4px}.tfpe-categories{grid-template-columns:1fr;gap:12px}.tfpe-category{padding:11px}.tfpe-category h3{font-size:16px}.tfpe-section,.tfpe-creator{padding:17px;border-radius:16px}.tfpe-form-grid{gap:12px}.tfpe input:not([type=checkbox]),.tfpe select,.tfpe textarea{font-size:16px}.tfpe-category-edit{padding:14px}.tfpe-category-edit__head{align-items:flex-start;flex-direction:column;gap:4px}.tfpe-category-edit__head strong{max-width:100%}.tfpe-section-title{align-items:flex-start;flex-wrap:wrap;gap:12px}.tfpe-section-title h2{font-size:20px}.tfpe-courts{grid-template-columns:1fr}.tfpe-match{grid-template-columns:85px 1fr;gap:12px;padding:14px}.tfpe-match>.tfpe-btn{grid-column:1/-1}.tfpe-match__time{font-size:15px}.tfpe-match__players{font-size:14px}.tfpe-match__time small{font-size:11px}.tfpe-save-row .tfpe-btn{flex:1 1 auto}}

body[data-page="tournament-creator-step-1"] .tfp-series-mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:680px){body[data-page="tournament-creator-step-1"] .tfp-series-mode-grid{grid-template-columns:1fr}}

/* Compact event heading; category pages keep their existing navigation. */
.tfpe-page .tfpe-hero{padding:20px 24px;margin:14px 0;border:1px solid #254961;border-left:4px solid #28c8df;border-radius:16px;gap:20px}
.tfpe-page .tfpe-hero>div:first-child{min-width:0}
.tfpe-page .tfpe-hero .tfpe-eyebrow{margin-bottom:7px;color:#93dcea;font-size:10px;letter-spacing:.08em}
.tfpe-page .tfpe-hero h1{color:#fff;-webkit-text-fill-color:#fff;font-size:clamp(23px,2.4vw,30px);line-height:1.2;overflow-wrap:anywhere}
.tfpe-hero__meta{display:flex;flex-wrap:wrap;gap:5px 18px;margin-top:10px;color:#c8deec;font-size:13px;line-height:1.5}
.tfpe-page .tfpe-hero__stats{gap:8px}
.tfpe-page .tfpe-hero__stats span{min-width:76px;padding:9px 13px;border:1px solid #ffffff20;border-radius:11px;background:#ffffff0b;font-size:11px}
.tfpe-page .tfpe-hero__stats strong{font-size:23px;line-height:1.3}
.tfpe-page>.tfpe-category-nav{padding:12px 14px}
.tfpe-page>.tfpe-category-nav>.tfpe-category-nav__heading{display:none}
.tfpe-page>.tfpe-category-nav .tfpe-tabs{padding-bottom:3px}
@media(max-width:1000px){.tfpe-page .tfpe-hero{flex-direction:row;align-items:center}}
@media(max-width:600px){.tfpe-page .tfpe-hero{padding:17px;flex-direction:column;align-items:flex-start;gap:13px}.tfpe-hero__meta{flex-direction:column;gap:4px;font-size:12px}.tfpe-page .tfpe-hero__stats span{display:flex;align-items:center;gap:7px;min-width:0;padding:6px 10px}.tfpe-page .tfpe-hero__stats strong{font-size:20px}.tfpe-page>.tfpe-category-nav{padding:10px}.tfpe-page .tfpe-subnav .tfpe-btn{flex:1 1 180px}}

.tfpe-category[style]{background:linear-gradient(165deg,rgb(var(--category-rgb)/.055),#fff 100px)}
.tfpe-category[style] .tfpe-btn{color:var(--category-text,#fff)!important}
.tfpe-color-picker{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding-top:5px}
.tfpe .tfpe-color-picker label{display:flex;flex-direction:row;align-items:center;gap:9px}
.tfpe .tfpe-color-picker input[type=color],.tfpe .tfpe-card-color input[type=color]{width:44px;min-width:44px;height:36px;min-height:36px;padding:3px;border-radius:8px;cursor:pointer}
.tfpe-color-swatches{display:flex;flex-wrap:wrap;gap:5px}
.tfpe-color-swatches button{width:36px;height:36px;border:4px solid #fff;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 1px #d5e0ed;cursor:pointer}
.tfpe-color-swatches button:focus-visible{outline:3px solid #54a7fa;outline-offset:2px}
.tfpe-category-edit{border-top:3px solid var(--category-color,#175ec7)}
.tfpe-card-color{display:flex;align-items:center;gap:8px;margin-top:4px;flex-wrap:wrap}
.tfpe .tfpe-card-color label{flex-direction:row;align-items:center;gap:8px;font-size:11px}
.tfpe-card-color .tfpe-text-btn{font-size:11px;min-height:36px}
.tfpe label small{font-size:10px;font-weight:500;color:#647f92}
.tfpe .tfpe-category-details{grid-column:1/-1;min-width:0;border-top:1px solid #d7e5ec;padding-top:12px;margin-top:2px}
.tfpe-category-details__title{margin-bottom:9px;font-size:12px;font-weight:800;color:#285969}
.tfpe .tfpe-category-details>.tfpe-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.tfpe .tfpe-category-details .tfpe-field{grid-column:auto!important}
.tfpe .tfpe-category-details>p{font-size:11px;color:#627a88;margin:9px 0 0;line-height:1.45}


.tfpe-category-settings-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tfpe-category-settings{min-width:0;padding:16px;border:1px solid #d6e2ed;border-top:3px solid var(--category-color,#175ec7);border-radius:12px;background:#f7fafc}
.tfpe-category-settings h3{font-size:16px;margin-bottom:12px}.tfpe-category-settings .tfpe-save-row{margin-top:12px}
.tfpe-match__location{margin-top:5px!important;font-size:12px;color:#537384}
@media(max-width:700px){.tfpe-category-settings-list{grid-template-columns:1fr}.tfpe-category-settings{padding:13px}.tfpe .tfpe-category-settings .tfpe-form-grid{gap:10px}}
@media(max-width:370px){.tfpe .tfpe-category-details>.tfpe-form-grid,.tfpe-category-settings .tfpe-form-grid{grid-template-columns:1fr!important}}
.tfpe-tabs a.tfpe-category-tab{background:var(--category-color,#175ec7);border-color:var(--category-color,#175ec7);color:var(--category-text,#fff);min-height:44px;display:inline-flex;align-items:center;transition:box-shadow .15s}
.tfpe-tabs a.tfpe-category-tab:hover{text-decoration:underline;text-underline-offset:3px}
.tfpe-tabs a.tfpe-category-tab.is-active{background:var(--category-color,#175ec7);border-color:var(--category-text,#fff);color:var(--category-text,#fff);box-shadow:inset 0 0 0 1px currentColor,0 0 0 2px rgb(var(--category-rgb)/.25)}
.tfpe-tabs a.tfpe-category-tab:focus-visible{outline:3px solid #17324b;outline-offset:3px}

/* Compact category cards on the event overview. */
.tfpe-categories-heading {
  margin-bottom: 11px;
}

.tfpe-category__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px 10px;
}

.tfpe-category__head h3 a {
  color: inherit;
}

.tfpe-category__head h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tfpe-category .tfpe-category__format {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tfpe-category__head .tfpe-tag {
  max-width: 110px;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tfpe-category__head .tfpe-tag--full {
  background: #fff0d3;
  color: #71500d;
}

.tfpe-category .tfpe-category__restrictions {
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tfpe-category__details {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 5px 12px;
  min-width: 0;
}

.tfpe-category__details p {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  color: #39546b;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tfpe-category__details svg {
  flex: 0 0 16px;
  color: #516e86;
}

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

.tfpe-category__signup {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tfpe-category__signup span {
  color: var(--event-muted);
  font-size: 12px;
}

.tfpe-category__footer .tfpe-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 13px;
}

.tfpe-category[style] .tfpe-category__footer .tfpe-category__more {
  border-color: #c9d8e5;
  background: #f4f7fa;
  color: #24455f !important;
}

.tfpe-category__settings {
  min-width: 0;
  border-top: 1px solid #e4ebf3;
}

.tfpe-category__settings summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 36px;
  padding: 4px 0;
  color: #294b67;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.tfpe-category__settings summary::-webkit-details-marker {
  display: none;
}

.tfpe-category__settings[open] summary svg {
  transform: rotate(180deg);
}

.tfpe-category__settings-body {
  padding: 4px 8px;
  border-radius: 8px;
  background: #f1f5f9;
}

.tfpe-category__settings-body .tfpe-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 5px 0;
  font-size: 12px;
}

.tfpe-category__settings-body .tfpe-card-color {
  margin: 0;
  padding: 5px 0;
  border-top: 1px solid #dce6f0;
}

.tfpe-category :is(h3 a, summary):focus-visible {
  outline: 2px solid #215d91;
  outline-offset: 2px;
}
