/* Cali Lambdas Tournament Manager — public sections */
.ctp {
  --ctp-accent: #512D1E;
  --ctp-tan: #ddc0a2;
  --ctp-ink: #1f1410;
  --ctp-muted: #8a7a70;
  --ctp-line: #e8e1da;
  --ctp-soft: #f6f3ef;
  --ctp-cream: #fffcf8;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ctp-ink);
  position: relative;
  margin: 0 auto;
  max-width: 1240px;
  padding: 70px 20px;
  box-sizing: border-box;
  container-type: inline-size;
}
.ctp *, .ctp *::before, .ctp *::after { box-sizing: border-box; }
.ctp h2, .ctp h3 { font-family: 'Oswald', 'Arial Narrow', sans-serif; text-transform: uppercase; letter-spacing: .01em; color: var(--ctp-ink); margin: 0; line-height: 1.1; }
.ctp a { text-decoration: none; }
.ctp img { max-width: 100%; display: block; }
.ctp button { font: inherit; }

/* Section head with ghost word + dot grid, like the samples */
.ctp-head { position: relative; text-align: center; padding: 30px 0 46px; }
.ctp-ghost { position: absolute; inset: auto 0 0; top: -40px; text-align: center; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(90px, 20cqi, 260px); line-height: .8; color: rgba(31, 20, 16, .045); letter-spacing: .02em; pointer-events: none; user-select: none; white-space: nowrap; overflow: hidden; }
.ctp-dots { position: absolute; left: 50%; top: 0; width: min(820px, 90%); height: 130px; transform: translateX(-50%); background-image: radial-gradient(rgba(31,20,16,.14) 1.4px, transparent 1.5px); background-size: 33px 33px; pointer-events: none; opacity: .7; }
.ctp-eyebrow { font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--ctp-muted); margin-bottom: 8px; position: relative; }
.ctp-title { font-size: clamp(30px, 5cqi, 56px); font-weight: 600; position: relative; }
.ctp-subtitle { font-size: 24px; margin-bottom: 18px !important; }
.ctp-empty { text-align: center; color: var(--ctp-muted); padding: 20px 0; }

/* Buttons */
.ctp-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; padding: 13px 26px; font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; border: 1px solid; cursor: pointer; transition: .2s; }
.ctp-btn--solid { background: var(--ctp-cream); color: var(--ctp-ink); border-color: var(--ctp-cream); }
.ctp-btn--solid:hover { background: var(--ctp-tan); border-color: var(--ctp-tan); color: var(--ctp-ink); }
.ctp-btn--line { background: transparent; color: var(--ctp-ink); border-color: #cfc6be; }
.ctp-btn--line:hover { border-color: var(--ctp-accent); color: var(--ctp-accent); }

/* ---------- Countdown ---------- */
.ctp-countdown { max-width: none; padding: 0; color: #fff; overflow: hidden; background: var(--ctp-accent); }
.ctp-countdown-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ctp-countdown.has-bg .ctp-countdown-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,12,9,.55), rgba(20,12,9,.7)); }
.ctp-countdown:not(.has-bg) .ctp-countdown-bg { background: radial-gradient(circle at 20% 0, #6b3c27, var(--ctp-accent) 60%); }
.ctp-countdown-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 90px 20px; text-align: center; }
.ctp-countdown .ctp-eyebrow { color: rgba(255,255,255,.8); }
.ctp-countdown .ctp-title { color: #fff; }
.ctp-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 980px; margin: 44px auto 30px; }
.ctp-clock div { display: flex; flex-direction: column-reverse; align-items: center; }
.ctp-clock b { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: clamp(54px, 13cqi, 150px); line-height: 1; font-variant-numeric: tabular-nums; }
.ctp-clock span { font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 10px; }
.ctp-facts { font-family: 'Oswald', sans-serif; font-size: 20px; letter-spacing: .03em; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; align-items: center; }
.ctp-facts i { width: 6px; height: 6px; border-radius: 50%; background: var(--ctp-tan); display: inline-block; }
.ctp-map { display: inline-block; margin-top: 6px; color: rgba(255,255,255,.75) !important; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.3); }
.ctp-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.ctp-countdown .ctp-btn--line { color: #fff; border-color: rgba(255,255,255,.6); }
.ctp-countdown .ctp-btn--line:hover { background: #fff; color: var(--ctp-ink); }
.ctp-docs { position: relative; }
.ctp-docs summary { list-style: none; }
.ctp-docs summary::-webkit-details-marker { display: none; }
.ctp-docs ul { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 8px); min-width: 260px; background: #fff; list-style: none; margin: 0; padding: 6px 0; text-align: left; box-shadow: 0 14px 40px rgba(0,0,0,.25); z-index: 5; }
.ctp-docs li a { display: block; padding: 10px 18px; color: var(--ctp-ink); font-size: 14px; }
.ctp-docs li a:hover { background: var(--ctp-soft); color: var(--ctp-accent); }

/* ---------- Upcoming ---------- */
.ctp-upcoming-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.ctp-upcard { border: 1px solid var(--ctp-line); background: #fff; }
.ctp-upcard-img { aspect-ratio: 16/9; background: var(--ctp-accent) center/cover; position: relative; }
.ctp-upcard-img span { position: absolute; left: 16px; bottom: 14px; background: #fff; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 13px; padding: 4px 10px; letter-spacing: .06em; }
.ctp-upcard-body { padding: 22px; }
.ctp-upcard h3 { font-size: 24px; margin-bottom: 6px; }
.ctp-upcard p { color: var(--ctp-muted); margin: 0 0 12px; }
.ctp-mini-clock { font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--ctp-accent); margin-bottom: 16px; letter-spacing: .02em; }

/* ---------- Featured carousel ---------- */
.ctp-featured .ctp-head { padding-bottom: 60px; }
.ctp-carousel { position: relative; padding: 0 54px; }
.ctp-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 26px) / 4); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.ctp-track::-webkit-scrollbar { display: none; }
.ctp-player { scroll-snap-align: start; color: var(--ctp-ink) !important; display: block; }
.ctp-player-img { aspect-ratio: 3/4; background: #fff; border: 1px solid var(--ctp-line); overflow: hidden; margin-bottom: 26px; }
.ctp-player-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ctp-player:hover .ctp-player-img img { transform: scale(1.04); }
.ctp-player h3 { font-size: 24px; font-weight: 500; transition: color .2s; }
.ctp-player:hover h3 { color: var(--ctp-accent); }
.ctp-arrow { position: absolute; top: calc(50% - 60px); width: 40px; height: 60px; background: none; border: 0; cursor: pointer; color: var(--ctp-ink); padding: 0; display: flex; align-items: center; }
.ctp-arrow::before { content: ''; width: 34px; height: 34px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); position: absolute; left: 14px; }
.ctp-arrow--prev { left: 0; }
.ctp-arrow--next { right: 0; }
.ctp-arrow--next::before { transform: rotate(-135deg); left: -8px; }
.ctp-arrow-num { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600; position: absolute; left: 40px; }
.ctp-arrow--next .ctp-arrow-num { left: auto; right: 40px; }
.ctp-arrow:disabled { opacity: .25; cursor: default; }

/* ---------- Player profile ---------- */
.ctp-profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 70px; align-items: center; }
.ctp-profile-img { position: relative; padding: 40px 0 0 0; }
.ctp-profile-img span { position: absolute; left: 0; right: 8%; top: 12%; bottom: 0; background: var(--ctp-soft); border: 1px solid var(--ctp-line); }
.ctp-profile-img img { position: relative; width: 100%; max-height: 560px; object-fit: contain; object-position: bottom; }
.ctp-profile .ctp-title { font-size: clamp(34px, 5cqi, 52px); margin-bottom: 14px; }
.ctp-meta { color: var(--ctp-muted); font-size: 16px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.ctp-meta i { font-style: normal; color: #cbbfb5; }
.ctp-profile-body h3 { font-size: 22px; font-weight: 500; margin: 34px 0 12px; }
.ctp-bio { color: var(--ctp-muted); font-size: 17px; line-height: 1.65; margin-bottom: 30px; }
.ctp-bio p { margin: 0 0 12px; }

/* ---------- Teams ---------- */
.ctp-teamgrid { display: grid; grid-template-columns: repeat(var(--ctp-cols, 4), minmax(0, 1fr)); gap: 50px 30px; }
.ctp-team { background: none; border: 0; padding: 0; text-align: center; cursor: pointer; color: var(--ctp-ink); }
div.ctp-team { cursor: default; }
.ctp-team img { width: 180px; height: 170px; object-fit: contain; margin: 0 auto 26px; transition: transform .3s; }
.ctp-team:hover img { transform: translateY(-6px); }
.ctp-team h3 { font-size: 24px; font-weight: 500; transition: color .2s; }
.ctp-team:hover h3 { color: var(--ctp-accent); }
.ctp-dialog { border: 0; padding: 34px; max-width: 760px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.3); font-family: 'Roboto', sans-serif; color: var(--ctp-ink); }
.ctp-dialog::backdrop { background: rgba(20,12,9,.6); }
.ctp-dialog-close { position: absolute; right: 14px; top: 10px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ctp-muted); }
.ctp-dialog-head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.ctp-dialog-head img { width: 84px; height: 84px; object-fit: contain; }
.ctp-dialog-head h3 { font-size: 30px; }
.ctp-dialog-head p { margin: 4px 0 0; color: var(--ctp-muted); font-size: 14px; }
.ctp-roster { width: 100%; border-collapse: collapse; font-size: 15px; }
.ctp-roster th { text-align: left; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ctp-muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--ctp-line); }
.ctp-roster td { padding: 11px 10px; border-bottom: 1px solid var(--ctp-line); }
.ctp-roster td:first-child { font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--ctp-accent); width: 50px; }
.ctp-roster a { color: var(--ctp-accent); border-bottom: 1px solid var(--ctp-tan); }

/* ---------- Champions ---------- */
.ctp-trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 30px; position: relative; }
.ctp-trophy { border: 1px solid var(--ctp-line); background: #fff; padding: 22px 16px 0; position: relative; display: flex; flex-direction: column; }
.ctp-trophy::after { content: ''; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 4px; background: var(--ctp-accent); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.ctp-trophy:hover::after { transform: scaleX(1); }
.ctp-trophy h3 { font-size: 22px; font-weight: 500; }
.ctp-trophy-img { position: relative; height: 250px; display: flex; align-items: center; justify-content: center; margin-top: 14px; }
.ctp-trophy-img img { max-height: 230px; width: auto; position: relative; z-index: 1; }
.ctp-trophy-img img.is-photo { width: 100%; height: 210px; object-fit: cover; }
.ctp-trophy-num { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 96px; color: rgba(31,20,16,.08); line-height: 1; }
.ctp-trophy-team { border-top: 1px solid var(--ctp-line); margin: 16px -16px 0; padding: 14px 16px 18px; }
.ctp-trophy-team strong { display: block; font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 18px; text-transform: uppercase; }
.ctp-trophy-team span { font-size: 13px; color: var(--ctp-muted); }

/* ---------- Team photos + mosaic ---------- */
.ctp-photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.ctp-photogrid figure { margin: 0; }
.ctp-photogrid button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; overflow: hidden; }
.ctp-photogrid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s; }
.ctp-photogrid button:hover img { transform: scale(1.04); }
.ctp-photogrid figcaption { padding: 14px 0 0; }
.ctp-photogrid figcaption strong { display: block; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 20px; font-weight: 500; }
.ctp-photogrid figcaption span { color: var(--ctp-muted); font-size: 14px; }
.ctp-mosaic-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 10px; }
.ctp-tile { padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--ctp-soft); }
.ctp-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.ctp-tile:hover img { transform: scale(1.05); filter: brightness(1.05); }
.ctp-tile.is-big { grid-column: span 2; grid-row: span 2; }
.ctp-tile.is-tall { grid-row: span 2; }
.ctp-tile.is-wide { grid-column: span 2; }
.ctp-lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.ctp-lightbox::backdrop { background: rgba(10,6,4,.88); }
.ctp-lightbox img { max-width: 92vw; max-height: 84vh; display: block; margin: 0 auto; }
.ctp-lightbox p { color: #fff; text-align: center; font-family: 'Roboto', sans-serif; margin: 12px 0 0; }
.ctp-lightbox button { position: fixed; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; padding: 10px 16px; }
.ctp-lb-close { top: 10px; right: 14px; }
.ctp-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.ctp-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Documents ---------- */
.ctp-documents { padding: 30px 20px; }
.ctp-documents ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ctp-line); }
.ctp-documents li a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--ctp-line); color: var(--ctp-ink); font-size: 16px; }
.ctp-documents li a em { font-style: normal; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 13px; letter-spacing: .1em; color: var(--ctp-accent); }
.ctp-documents li a:hover span { color: var(--ctp-accent); }


/* ---------- Section design (Website Sections editor) ---------- */
.ctp-styled { position: relative; overflow: hidden; }
.ctp-styled > :not(.ctp-bgimg):not(.ctp-overlay):not(.ctp-graphic):not(dialog) { position: relative; z-index: 1; }
.ctp-bgimg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.ctp-overlay { position: absolute; inset: 0; z-index: 0; }
.ctp-graphic { position: absolute; z-index: 0; height: auto; max-width: 70%; pointer-events: none; display: block; }
.ctp-graphic--left { left: 0; top: 50%; transform: translateY(-50%); }
.ctp-graphic--right { right: 0; top: 50%; transform: translateY(-50%); }
.ctp-graphic--top-left { left: 0; top: 0; }
.ctp-graphic--top-right { right: 0; top: 0; }
.ctp-graphic--bottom-left { left: 0; bottom: 0; }
.ctp-graphic--bottom-right { right: 0; bottom: 0; }
.ctp-graphic--center { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ctp-graphic--top { left: 50%; top: 0; transform: translateX(-50%); }
.ctp-full { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; padding-left: max(20px, calc(50vw - 620px)); padding-right: max(20px, calc(50vw - 620px)); }
.ctp-countdown.ctp-full { padding-left: 0; padding-right: 0; }
.ctp-countdown[style*="--ctp-ov"] .ctp-countdown-bg::after { content: ''; position: absolute; inset: 0; background: var(--ctp-ov); opacity: var(--ctp-ovo); }
.ctp-light { --ctp-ink: #ffffff; --ctp-muted: rgba(255,255,255,.78); --ctp-line: rgba(255,255,255,.22); --ctp-soft: rgba(255,255,255,.08); color: #fff; }
.ctp-light .ctp-ghost { color: rgba(255,255,255,.07); }
.ctp-light .ctp-dots { background-image: radial-gradient(rgba(255,255,255,.22) 1.4px, transparent 1.5px); }
.ctp-light :is(.ctp-match, .ctp-bgame, .ctp-trophy, .ctp-upcard, .ctp-docs ul, .ctp-dialog) { --ctp-ink: #1f1410; --ctp-muted: #8a7a70; --ctp-line: #e8e1da; --ctp-soft: #f6f3ef; color: var(--ctp-ink); }
.ctp-light .ctp-matches { border-color: rgba(255,255,255,.22); }
.ctp-light .ctp-btn--line { color: #fff; border-color: rgba(255,255,255,.6); }
.ctp-countdown.ctp-darktext, .ctp-countdown.ctp-darktext .ctp-title, .ctp-countdown.ctp-darktext .ctp-eyebrow, .ctp-countdown.ctp-darktext .ctp-clock span, .ctp-countdown.ctp-darktext .ctp-map { color: var(--ctp-ink) !important; }
.ctp-countdown.ctp-darktext .ctp-btn--line { color: var(--ctp-ink); border-color: var(--ctp-ink); }


/* Team colors */
.ctp-teambar { display: block; height: 5px; width: 70px; margin: 10px auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--team1) 0 65%, var(--team2) 65% 100%); }
.ctp-team .ctp-teambar { margin: -14px auto 18px; }
.ctp-match-team .ctp-teambar { margin-top: 8px; width: 56px; }
.ctp-bteam.has-colors { box-shadow: inset 4px 0 0 var(--team1); }
.ctp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--team1) 0 55%, var(--team2) 55% 100%); margin-left: 4px; flex: none; }
.ctp-dialog.has-colors { border-top: 6px solid var(--team1); }

/* ---------- Responsive (by the section's own width) ---------- */
@container (max-width: 980px) {
  .ctp-track { grid-auto-columns: calc((100% - 26px) / 2); }
  .ctp-teamgrid { grid-template-columns: repeat(min(var(--ctp-cols, 4), 3), minmax(0, 1fr)); }
  .ctp-mosaic-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .ctp-profile { gap: 36px; }
}
@container (max-width: 640px) {
  .ctp-track { grid-auto-columns: 78%; }
  .ctp-carousel { padding: 0; }
  .ctp-arrow { display: none; }
  .ctp-teamgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 16px; }
  .ctp-team img { width: 120px; height: 120px; }
  .ctp-team h3 { font-size: 19px; }
  .ctp-profile { grid-template-columns: 1fr; }
  .ctp-mosaic-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .ctp-clock { gap: 4px; }
  .ctp-clock span { letter-spacing: .15em; font-size: 10px; }
  .ctp-countdown-inner { padding: 60px 16px; }
  .ctp-dialog { padding: 24px 16px; }
  .ctp-facts { flex-direction: column; font-size: 18px; }
  .ctp-facts i { display: none; }
  .ctp-roster th:nth-child(4), .ctp-roster td:nth-child(4) { display: none; }
}

/* ---------- Phase 3: scores, bracket, standings, rankings, MVP, wall ---------- */
.ctp-bare { padding: 0; max-width: none; }
.ctp-matches { border: 1px solid var(--ctp-line); }
.ctp-match { display: grid; grid-template-columns: 1fr auto 1fr minmax(240px, 1.6fr); align-items: center; gap: 10px 26px; padding: 26px 40px; border-bottom: 1px solid var(--ctp-line); background: #fff; }
.ctp-match:nth-child(even) { background: var(--ctp-soft); }
.ctp-match:last-child { border-bottom: 0; }
.ctp-match.is-live { box-shadow: inset 4px 0 0 #d9862f; }
.ctp-match-team { text-align: center; }
.ctp-match-team img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 10px; }
.ctp-match-team h3 { font-size: 20px; font-weight: 500; }
.ctp-match-team.is-winner h3 { color: var(--ctp-accent); }
.ctp-vs { font-family: 'Oswald', sans-serif; font-size: 34px; font-weight: 600; }
.ctp-match-info h3 { font-size: 24px; font-weight: 500; }
.ctp-match-score { font-family: 'Oswald', sans-serif; font-size: 44px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ctp-match-score i { font-style: normal; margin: 0 10px; color: var(--ctp-muted); }
.ctp-dash { color: var(--ctp-muted); }
.ctp-match-meta { font-size: 13px; color: var(--ctp-muted); letter-spacing: .04em; }
.ctp-live-dot { display: inline-flex; align-items: center; gap: 6px; color: #c0392b; font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }
.ctp-live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #e74c3c; animation: ctp-pulse 1.4s infinite; }
@keyframes ctp-pulse { 50% { opacity: .3; } }
.ctp-box { grid-column: 1 / -1; width: 100%; max-width: 560px; justify-self: end; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.ctp-box td:first-child { width: 45%; }
.ctp-box th { color: var(--ctp-muted); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-align: center; padding: 4px; }
.ctp-box td { text-align: center; padding: 5px 4px; border-top: 1px solid var(--ctp-line); font-variant-numeric: tabular-nums; }
.ctp-box td:first-child, .ctp-box th:first-child { text-align: left; }

.ctp-bracket-label { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; margin: 26px 0 10px; color: var(--ctp-accent); }
.ctp-bracket-label:first-child { margin-top: 0; }
.ctp-bracket { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 10px; }
.ctp-round { flex: 0 0 210px; display: flex; flex-direction: column; }
.ctp-round-name { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ctp-muted); margin-bottom: 10px; }
.ctp-round-games { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 14px; }
.ctp-bgame { border: 1px solid var(--ctp-line); background: #fff; position: relative; }
.ctp-bgame.is-live { border-color: #e4a54b; }
.ctp-bgame .ctp-live-dot { position: absolute; right: 6px; top: -9px; background: #fff; padding: 0 4px; font-size: 10px; }
.ctp-bteam { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 14px; }
.ctp-bteam + .ctp-bteam { border-top: 1px solid var(--ctp-line); }
.ctp-bteam img { width: 22px; height: 22px; object-fit: contain; }
.ctp-bteam span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctp-bteam b { font-family: 'Oswald', sans-serif; font-weight: 600; min-width: 22px; text-align: right; }
.ctp-bteam.is-winner { background: #fbf6ef; font-weight: 600; }
.ctp-bteam.is-winner b { color: var(--ctp-accent); }
.ctp-bteam.is-tbd span { color: var(--ctp-muted); font-size: 12.5px; font-style: italic; }
.ctp-bdot { width: 22px; height: 22px; border-radius: 50%; border: 1px dashed #d5c8bb; }

.ctp-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.ctp-group h3 { font-size: 22px; margin-bottom: 10px; }
.ctp-group table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ctp-group th { font-size: 11px; letter-spacing: .15em; color: var(--ctp-muted); font-weight: 500; text-align: center; padding: 8px 4px; border-bottom: 1px solid var(--ctp-line); }
.ctp-group th:nth-child(2) { text-align: left; }
.ctp-group td { text-align: center; padding: 10px 4px; border-bottom: 1px solid var(--ctp-line); }
.ctp-group td:nth-child(2) { text-align: left; display: flex; align-items: center; gap: 8px; }
.ctp-group td img { width: 24px; height: 24px; object-fit: contain; }
.ctp-group tr.is-adv td:first-child { box-shadow: inset 3px 0 0 var(--ctp-accent); font-weight: 600; }

.ctp-ranklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ctp-line); }
.ctp-ranklist li { display: grid; grid-template-columns: 70px 1fr auto; gap: 18px; align-items: center; padding: 18px 10px; border-bottom: 1px solid var(--ctp-line); }
.ctp-ranklist li:first-child .ctp-rank { color: var(--ctp-accent); }
.ctp-rank { font-family: 'Oswald', sans-serif; font-size: 40px; font-weight: 700; color: #d9cec4; line-height: 1; }
.ctp-ranklist h3 { font-size: 22px; font-weight: 500; }
.ctp-ranklist li > div > span { color: var(--ctp-muted); font-size: 14px; }
.ctp-ranklist dl { display: flex; gap: 26px; margin: 0; }
.ctp-ranklist dt { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ctp-muted); }
.ctp-ranklist dd { margin: 0; font-family: 'Oswald', sans-serif; font-size: 24px; text-align: center; }

.ctp-mvp-grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); overflow: visible; }
.ctp-player-img { position: relative; }
.ctp-mvp-badge { position: absolute; left: 12px; top: 12px; z-index: 1; background: var(--ctp-accent); color: #fff; font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: .1em; padding: 4px 10px; }

.ctp-wallfeed { max-width: 760px; margin: 0 auto; }
.ctp .clt-post { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--ctp-line); }
.ctp .clt-post-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; background: var(--ctp-soft); }
.ctp .clt-post-main { flex: 1; min-width: 0; }
.ctp .clt-post-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 15px; }
.ctp .clt-post-team { font-size: 12px; background: var(--ctp-accent); color: #fff; padding: 1px 8px; }
.ctp .clt-post-q { font-size: 12px; background: #e8eef8; color: #2d4f86; padding: 1px 8px; }
.ctp .clt-post-time { color: var(--ctp-muted); font-size: 12px; }
.ctp .clt-post-callout { font-size: 13px; color: #9a6512; margin-top: 2px; }
.ctp .clt-post-body { margin-top: 4px; overflow-wrap: anywhere; }

@container (max-width: 900px) {
  .ctp-match { grid-template-columns: 1fr auto 1fr; padding: 22px 16px; }
  .ctp-match-info { grid-column: 1 / -1; text-align: center; }
  .ctp-ranklist li { grid-template-columns: 50px 1fr; }
  .ctp-ranklist dl { grid-column: 1 / -1; justify-content: flex-start; gap: 20px; }
}
@container (max-width: 640px) {
  .ctp-match-team img { width: 46px; height: 46px; }
  .ctp-match-team h3 { font-size: 16px; }
  .ctp-vs { font-size: 24px; }
  .ctp-match-score { font-size: 36px; }
  .ctp-rank { font-size: 30px; }
}

/* Section logo (top center) */
.ctp-logo { display: flex; justify-content: center; box-sizing: border-box; width: 100%; line-height: 0; }
.ctp-logo img { display: block; max-width: 100%; height: auto; }
.ctp-countdown-inner > .ctp-logo { margin: 0 auto; }

/* Roster pop-ups: always a centered window above the page, whatever the theme or section styling does */
.ctp-dialog:not([open]) { display: none !important; }
.ctp-dialog[open] {
  display: block !important; position: fixed !important; inset: 0 !important; margin: auto !important;
  height: fit-content; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto;
  z-index: 2147483000; transform: none !important; float: none !important; background: #fff;
}
.ctp-dialog.is-fallback { box-shadow: 0 0 0 100vmax rgba(20,12,9,.6), 0 30px 80px rgba(0,0,0,.3); }
.ctp-dialog-close { z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; }
.ctp-dialog-close:hover { color: var(--ctp-ink); }
html.ctp-noscroll { overflow: hidden; }

/* ---------- 1.8: badges, career, tagged photos, stat leaders ---------- */
.ctp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.ctp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 5px; border-radius: 99px; background: color-mix(in srgb, var(--b) 14%, transparent); border: 1px solid color-mix(in srgb, var(--b) 45%, transparent); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.ctp-badge svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--b); stroke: #fff; color: #fff; fill: none; stroke-width: 2; box-sizing: border-box; }
.ctp-badge b { opacity: .7; }
.ctp-career table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 14px; }
.ctp-career th, .ctp-career td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--ctp-line, #e8e1da); font-weight: 400; vertical-align: top; }
.ctp-career th { font-weight: 600; width: 40%; }
.ctp-career th small { display: block; font-weight: 400; color: var(--ctp-muted); font-size: 12px; }
.ctp-tagged { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 6px 0 16px; }
.ctp-tagged button { padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 1; overflow: hidden; }
.ctp-tagged img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctp-leadgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ctp-leadcard { background: var(--ctp-card, #fff); border: 1px solid var(--ctp-line, #e8e1da); padding: 18px; }
.ctp-leadcard h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ctp-accent, #512D1E); }
.ctp-leadcard ol { list-style: none; margin: 0; padding: 0; }
.ctp-leadcard li { display: grid; grid-template-columns: 22px 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ctp-line, #eee); border-left: 3px solid var(--team1, transparent); padding-left: 6px; }
.ctp-leadcard li:last-child { border-bottom: 0; }
.ctp-leadcard img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ctp-rank { font-weight: 700; color: var(--ctp-muted); text-align: center; }
.ctp-leadname { display: flex; flex-direction: column; min-width: 0; }
.ctp-leadname a { color: inherit; font-weight: 600; text-decoration: none; }
.ctp-leadname small { color: var(--ctp-muted); font-size: 12px; }
.ctp-leadcard li b { font-size: 22px; font-variant-numeric: tabular-nums; }
.ctp-leadcard li:first-child b { color: var(--ctp-accent, #512D1E); }

/* ---------- 1.9: scholarship and recipients ---------- */
.ctp-sch { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 34px; max-width: 1100px; margin: 0 auto; text-align: left; }
.ctp-sch h3 { margin: 22px 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .12em; color: var(--ctp-accent, #512D1E); }
.ctp-sch-behalf { font-size: 17px; margin: 0 0 10px; }
.ctp-sch-q { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.ctp-sch-q strong { display: block; }
.ctp-sch-side { background: var(--ctp-card, #fff); border: 1px solid var(--ctp-line, #e8e1da); padding: 22px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.ctp-sch-amt { display: flex; flex-direction: column; }
.ctp-sch-amt b { font-family: 'Oswald', sans-serif; font-size: 52px; line-height: 1; color: var(--ctp-accent, #512D1E); }
.ctp-sch-amt span { text-transform: uppercase; letter-spacing: .2em; font-size: 11.5px; color: var(--ctp-muted); }
.ctp-sch-dl { display: flex; flex-direction: column; gap: 4px; }
.ctp-sch-dl > span { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--ctp-muted); }
.ctp-clock--sm { margin: 8px 0 0; gap: 6px; }
.ctp-clock--sm b { font-size: 30px !important; color: var(--ctp-ink, #1f1410); }
.ctp-clock--sm span { color: var(--ctp-muted) !important; letter-spacing: .14em; margin: 0 0 4px; font-size: 10px; }
.ctp-sch-side .ctp-btn { text-align: center; }
.ctp-sch-side h4 { margin: 6px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.ctp-sch-comm { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.ctp-sch-comm li { display: flex; flex-direction: column; }
.ctp-sch-comm span { color: var(--ctp-muted); font-size: 12px; }
.ctp-recgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; max-width: 1200px; margin: 0 auto; }
.ctp-rec { margin: 0; text-align: left; }
.ctp-rec-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #efe6dc; }
.ctp-rec-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctp-rec-img span { position: absolute; left: 12px; bottom: 12px; background: var(--ctp-accent, #512D1E); color: #fff; font-family: 'Oswald', sans-serif; padding: 2px 10px; font-size: 14px; letter-spacing: .1em; }
.ctp-rec figcaption { display: flex; flex-direction: column; gap: 3px; padding: 12px 2px 0; }
.ctp-rec strong { font-size: 18px; }
.ctp-rec small { color: var(--ctp-muted); }
.ctp-rec em { font-style: normal; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ctp-accent, #512D1E); }
.ctp-rec p { margin: 4px 0 0; font-size: 14px; }
@container (max-width: 760px) { .ctp-sch { grid-template-columns: 1fr; } }
