/* PI Connect – World Final leaderboard. Colours and fonts follow the Elementor kit. */
.piwf {
  --piwf-bg: var(--e-global-color-primary, #141715);
  --piwf-panel: #181C1A;
  --piwf-line: #2F3532;
  --piwf-line-soft: #262B28;
  --piwf-text: var(--e-global-color-text, #FCEFE6);
  --piwf-muted: #A9AFAA;
  --piwf-sage: var(--e-global-color-9392d85, #809887);
  --piwf-sage-light: var(--e-global-color-d086b46, #9CB4A2);
  --piwf-green: var(--e-global-color-92e72b7, #26332B);
  --piwf-orange: var(--e-global-color-accent, #F16833);
  --piwf-orange-zone: #2A1C16;
  --piwf-head: var(--e-global-typography-primary-font-family, "N27"), "N27", sans-serif;
  --piwf-body: var(--e-global-typography-text-font-family, "Manrope"), "Manrope", sans-serif;
  color: var(--piwf-text);
  font-family: var(--piwf-body);
  font-size: 15px;
  line-height: 1.4;
}
.piwf *, .piwf *::before, .piwf *::after { box-sizing: border-box; }
.piwf-stale .piwf-root { opacity: .85; }

.piwf-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.piwf-col { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.piwf-ch { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 32px; }
.piwf-ch-wide { margin-bottom: 12px; }
.piwf-h { margin: 0; font-family: var(--piwf-head); font-weight: 700; font-size: 22px; line-height: 1.1; text-transform: uppercase; color: var(--piwf-text); }

.piwf-tbl { border: 1px solid var(--piwf-line); background: var(--piwf-panel); }
.piwf-th, .piwf-tr { display: grid; column-gap: 10px; align-items: center; padding: 0 14px; }
.piwf-g4 .piwf-th, .piwf-g4 .piwf-tr { grid-template-columns: 36px minmax(0, 1fr) auto 56px; }
.piwf-g5 .piwf-th, .piwf-g5 .piwf-tr { grid-template-columns: 32px minmax(0, 1fr) minmax(0, max-content) auto 52px; }
.piwf-g2 .piwf-th, .piwf-g2 .piwf-tr { grid-template-columns: 44px minmax(0, 1fr); }
.piwf-final .piwf-th, .piwf-final .piwf-tr { grid-template-columns: 56px minmax(0, 1fr) minmax(0, max-content) 72px; padding: 0 18px; }
.piwf-th { height: 46px; border-bottom: 1px solid var(--piwf-line); font-family: var(--piwf-head); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--piwf-sage); }
.piwf-tr { min-height: 44px; border-bottom: 1px solid var(--piwf-line-soft); }
.piwf-tr:last-child { border-bottom: 0; }
.piwf-final .piwf-tr { min-height: 50px; font-size: 16px; }
.piwf-zf { background: var(--piwf-green); }
.piwf-zl { background: var(--piwf-orange-zone); }
.piwf-zo { color: var(--piwf-muted); }
.piwf-top { background: var(--piwf-green); }
.piwf-top .piwf-pos { font-family: var(--piwf-head); font-weight: 700; font-size: 20px; color: var(--piwf-sage-light); }
.piwf-pos { text-align: center; font-variant-numeric: tabular-nums; }
.piwf-sc { text-align: right; font-variant-numeric: tabular-nums; }
.piwf-team { min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 6px 0; }
.piwf-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.piwf-cell { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; line-height: 1.3; color: var(--piwf-sage-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.piwf-cellc { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 150px; justify-self: end; font-family: var(--piwf-head); font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--piwf-sage-light); }
.piwf-celln { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.piwf-final .piwf-cellc { max-width: 220px; font-size: 12px; }
.piwf-cdot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--piwf-orange); }
.piwf-empty, .piwf-more { padding: 12px 14px; font-size: 14px; color: var(--piwf-muted); }

.piwf-tag { display: inline-block; font-family: var(--piwf-head); font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1.4; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.piwf-tf { background: var(--piwf-sage-light); color: var(--piwf-bg); }
.piwf-tl { background: var(--piwf-orange); color: #2A1900; }
.piwf-src { justify-self: start; font-family: var(--piwf-head); font-size: 12px; font-weight: 700; padding: 2px 7px; border: 1px solid #4A524E; border-radius: 4px; color: #C9CCC9; white-space: nowrap; }
.piwf-semi { justify-self: end; color: var(--piwf-muted); border-color: var(--piwf-line); }
.piwf-srcl { border-color: var(--piwf-orange); color: var(--piwf-orange); }
.piwf-cut { padding: 7px 14px; font-family: var(--piwf-head); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--piwf-sage); border-bottom: 1px dashed #5A635E; background: var(--piwf-bg); }

.piwf-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--piwf-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--piwf-orange); }
.piwf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--piwf-orange); animation: piwf-pulse 1.4s ease-in-out infinite; }
@keyframes piwf-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .piwf-dot { animation: none; } }
.piwf-done { font-family: var(--piwf-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--piwf-sage); }
.piwf-prov { color: #C9CCC9; }

.piwf-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-bottom: 24px; font-size: 14px; color: #C9CCC9; }
.piwf-legend > span { display: inline-flex; gap: 8px; align-items: center; }
.piwf-cutoff { color: var(--piwf-text); }
.piwf-cutoff strong { color: var(--piwf-orange); font-weight: 700; }
.piwf-small { margin: 12px 0 0; font-size: 14px; color: var(--piwf-muted); }
.piwf-note { margin: 0; font-size: 16px; color: #C9CCC9; }
.piwf-scroll { overflow-x: auto; }
.piwf-scroll .piwf-tbl { min-width: 520px; }

.piwf-below { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--piwf-line); }
.piwf-below-h { margin-bottom: 20px; }
.piwf-plist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--piwf-line); border-left: 1px solid var(--piwf-line); counter-reset: piwf; }
.piwf-plist li { counter-increment: piwf; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border-right: 1px solid var(--piwf-line); border-bottom: 1px solid var(--piwf-line); background: var(--piwf-panel); }
.piwf-plist li::before { content: counter(piwf); min-width: 24px; text-align: right; font-variant-numeric: tabular-nums; color: var(--piwf-muted); font-size: 13px; }
.piwf-details { margin-top: 32px; border-top: 1px solid var(--piwf-line); padding-top: 20px; }
.piwf-details > summary { cursor: pointer; font-family: var(--piwf-head); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--piwf-sage-light); min-height: 44px; display: flex; align-items: center; }
.piwf-details[open] > summary { margin-bottom: 20px; }

.piwf-podium { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-bottom: 40px; }
.piwf-pod { flex: 1 1 220px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 24px; border: 1px solid var(--piwf-line); background: var(--piwf-panel); }
.piwf-p1 { min-height: 230px; border-color: var(--piwf-sage-light); background: var(--piwf-green); }
.piwf-p2 { min-height: 180px; }
.piwf-p3 { min-height: 150px; }
.piwf-pn { font-family: var(--piwf-head); font-weight: 700; font-size: 44px; line-height: 1; color: var(--piwf-sage); }
.piwf-p1 .piwf-pn { color: var(--piwf-sage-light); }
.piwf-podname { font-family: var(--piwf-head); font-weight: 700; font-size: 24px; line-height: 1.1; text-transform: uppercase; }
.piwf-p1 .piwf-podname { font-size: 30px; }
.piwf-podium .piwf-small { margin: 0; }

@media (max-width: 767px) {
  .piwf-scroll .piwf-tbl { min-width: 0; }
  .piwf-final .piwf-th, .piwf-final .piwf-tr { grid-template-columns: 40px minmax(0, 1fr) auto 56px; padding: 0 12px; }
  .piwf-g4 .piwf-th, .piwf-g4 .piwf-tr { grid-template-columns: 30px minmax(0, 1fr) auto 52px; padding: 0 10px; column-gap: 8px; }
  .piwf-g5 .piwf-th, .piwf-g5 .piwf-tr { grid-template-columns: 26px minmax(0, 1fr) minmax(0, max-content) auto 48px; padding: 0 10px; column-gap: 8px; }
  .piwf-cellc { max-width: 96px; }
  .piwf-podium { flex-direction: column; align-items: stretch; }
  .piwf-p1 { order: -1; }
  .piwf-pod { min-height: 0; }
}

/* Page sections that follow the phase: add the class pi-wf-only-<phase>.
   Always visible while editing in Elementor. */
body:not(.elementor-editor-active) [class*="pi-wf-only-"]:not(.pi-wf-visible) { display: none !important; }
