/* Season projections section (js/sections/projections.js) */
.pj .card-head h2 { margin: 0 0 2px; }
.pj-seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; }
.pj-seg button { background: none; border: 0; color: var(--text-2); font: 600 13px/1.2 var(--font-text); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.pj-seg button:hover { color: var(--text); }
.pj-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }

.pj-scroll { margin: 0 -22px; max-height: 640px; border-bottom: 1px solid var(--border); border-radius: 0; }
@media (max-width: 640px) { .pj-scroll { margin: 0 -16px; } }
.pj-table { font-variant-numeric: tabular-nums; }
.pj-table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); cursor: pointer; user-select: none; white-space: nowrap; }
.pj-table thead th:hover, .pj-table thead th.pj-sorted { color: var(--text); }
.pj-table thead th:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pj-arrow { font-style: normal; font-size: 9px; margin-left: 3px; vertical-align: 1px; }
.pj-table td { white-space: nowrap; }
.pj-table tbody tr[data-id] { cursor: pointer; }
.pj-table tbody tr[data-id]:hover td { background-color: var(--surface-2); }
.pj-table tbody tr.sel td { background-color: var(--accent-soft); }
.pj-table tbody tr.sel .pj-team { box-shadow: inset 3px 0 0 var(--accent); }

/* first column stays visible while the table scrolls sideways */
.pj-table .pj-team { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 150px; }
.pj-table thead th.pj-team { z-index: 3; }
.pj-table .pj-abbr { display: none; }
.pj-div { color: var(--text-2); }
.pj-proj { color: var(--text-2); }

.pj-group th { position: sticky; top: 37px; z-index: 1; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-2); background: var(--surface-2); padding: 6px 8px; border-bottom: 1px solid var(--border); }

/* probability cells: single-hue intensity */
.pj-table td.pj-prob { background-image: linear-gradient(color-mix(in oklab, var(--series-1) var(--pj-a, 0%), transparent), color-mix(in oklab, var(--series-1) var(--pj-a, 0%), transparent));
  min-width: 64px; font-weight: 500; }

.pj-detail { margin-top: 20px; }
.pj-detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; font-size: 14px; }
.pj-detail-head label { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.pj-charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.pj-charts > div { background: var(--surface-2); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.pj-charts h3 { font: 650 14px/1.3 var(--font-text); color: var(--text); margin: 0 0 8px; }
.pj-charts .legend { margin-bottom: 4px; }
.pj-note { margin: 14px 0 0; line-height: 1.5; }

@media (max-width: 760px) { .pj-charts { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pj-table .pj-team { min-width: 0; }
  .pj-table .pj-full { display: none; }
  .pj-table .pj-abbr { display: inline; }
  .pj-table td, .pj-table th { padding-left: 6px; padding-right: 6px; }
}

.pj-table th.pj-team, .pj-table td.pj-team { padding-left: 22px; }
@media (max-width: 640px) { .pj-table th.pj-team, .pj-table td.pj-team { padding-left: 14px; } }
.pj-table tbody tr.pj-group:hover th { background: var(--surface-2); }
.tourney-teaser .team-cell { color: var(--text); text-decoration: none; } .tourney-teaser { margin-bottom: 16px; }
