/* Team strengths (Auction 2027, Vijay 18 Nov 2026): every side's retained squad as a pizza chart, one slice an
   attribute; pick a side, lay another over it as an outline. Drawn by /assets/strengths.js. */
.ts { --bat: #8A1B33; --bowl: #3B4F66; --squad: #7A6A58; margin-top: 4px; }
.ts-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; margin: 0 0 14px; }
.ts-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-pick button { --t: var(--muted); display: inline-flex; align-items: center; gap: 7px; font: 700 14px/1 var(--body); letter-spacing: .02em; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px 8px 10px; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.ts-pick button i { width: 10px; height: 10px; border-radius: 50%; background: var(--t); flex: none; transition: background-color .15s ease; }
.ts-pick button:hover { border-color: var(--t); }
.ts-pick button[aria-pressed="true"] { background: var(--t); border-color: var(--t); color: #fff; }
.ts-pick button[aria-pressed="true"] i { background: #fff; }
.ts-vs { display: flex; align-items: center; gap: 8px; }
.ts-vs label { font-size: 13.5px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.ts-vs select { font: 600 14px/1.2 var(--body); color: var(--ink); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%235E6776' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 34px 9px 12px; -webkit-appearance: none; appearance: none; min-width: 230px; cursor: pointer; }
.ts-vs select:hover { border-color: var(--muted); }
.ts-swap { width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .15s ease, opacity .15s ease; }
.ts-swap:hover:not(:disabled) { border-color: var(--muted); }
.ts-swap:disabled { opacity: .35; cursor: default; }
.ts-swap svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ts-pick button:focus-visible, .ts-vs select:focus-visible, .ts-swap:focus-visible, .ts-info:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.ts-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 18px; }
.ts-key { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; min-height: 32px; padding: 2px 46px 0 4px; }
.ts-key .k { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.ts-key .k b { font: 800 24px/1 var(--display); letter-spacing: .01em; color: var(--ink); }
.ts-key .sw { width: 24px; height: 13px; border-radius: 3px; flex: none; align-self: center; }
.ts-key .ol { width: 24px; height: 13px; border-radius: 3px; border: 2.5px solid; box-sizing: border-box; flex: none; align-self: center; box-shadow: 0 0 0 1.5px #fff inset; }
.ts-info { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); font: italic 700 15px/1 Georgia, "Times New Roman", serif; cursor: pointer; }
.ts-info:hover { border-color: var(--muted); color: var(--ink); }
.ts-info[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ts-help { margin: 10px 4px 6px; padding: 14px 16px; background: var(--bg); border-radius: 12px; font-size: 13.5px; }
.ts-help[hidden] { display: none; }
.ts-help p { margin: 0 0 10px; max-width: 72ch; }
.ts-help dl { display: grid; grid-template-columns: max-content 1fr; gap: 5px 16px; margin: 0; }
.ts-help dt { font-weight: 700; white-space: nowrap; }
.ts-help dt i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; vertical-align: 1px; }
.ts-help dd { margin: 0; color: var(--muted); }

.ts-chart { position: relative; margin-top: 2px; }
.ts-chart svg { display: block; width: 100%; height: auto; max-width: 880px; margin: 0 auto; -webkit-tap-highlight-color: transparent; }
.ts-chart .wedge { cursor: pointer; transition: opacity .15s ease; }
.ts-chart svg.dim .wedge:not(.on), .ts-chart svg.dim .badge:not(.on) { opacity: .26; }
.ts-chart .vs-line { pointer-events: none; transition: opacity .2s ease; }
.ts-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.ts-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ts-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.ts-legend i.ring { width: 20px; height: 0; border-top: 2px dashed #8A93A3; border-radius: 0; }
.ts-tip { position: absolute; z-index: 4; width: 270px; background: var(--ink); color: #fff; border-radius: 12px; padding: 11px 13px 12px; font-size: 13px; line-height: 1.4; pointer-events: none; box-shadow: 0 10px 30px rgba(20, 25, 32, .28); }
.ts-tip[hidden] { display: none; }
.ts-tip .g { color: #AEB5C0; font-size: 12px; }
.ts-tip b { display: block; font-size: 14.5px; }
.ts-tip .sc { display: flex; align-items: baseline; gap: 14px; margin: 7px 0 6px; }
.ts-tip .sc span { display: inline-flex; align-items: baseline; gap: 6px; }
.ts-tip .sc strong { font: 800 27px/1 var(--display); }
.ts-tip .sc em { font-style: normal; font-size: 12px; color: #C9CED6; }
.ts-tip p { margin: 0; color: #DDE1E7; }

.ts-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.ts-col { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 6px; }
.ts-col h3 { display: flex; align-items: center; gap: 9px; margin: 2px 0 6px; font: 800 22px/1.1 var(--display); }
.ts-col h3 i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.ts-col h3 .who { margin-left: auto; display: flex; gap: 8px; font: 700 11px/1 var(--body); letter-spacing: .03em; color: var(--muted); }
.ts-col h3 .who span { width: 38px; text-align: center; }
.ts-col h3 .who span:last-child { width: 42px; text-align: right; }
.ts-col ol { list-style: none; margin: 0; padding: 0; }
.ts-col li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ts-col li:first-child { border-top: 0; }
.ts-col li .n { flex: 1; min-width: 0; }
.ts-col li:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.ts-bd { width: 38px; flex: none; font: 700 13px/1 var(--body); font-variant-numeric: tabular-nums; text-align: center; color: #fff; border-radius: 6px; padding: 5px 0 4px; }
.ts-bo { width: 38px; flex: none; font: 700 13px/1 var(--body); font-variant-numeric: tabular-nums; text-align: center; color: var(--ink); border: 2px solid var(--c, var(--ink)); border-radius: 6px; padding: 3px 0 2px; background: var(--surface); }
.ts-df { width: 42px; flex: none; text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--muted); }
.ts-df.up { color: #2F7D3A; } .ts-df.dn { color: #B02E1C; }
.ts-xi { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.ts-xi div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ts-xi h3 { margin: 0 0 6px; font: 800 18px/1.1 var(--display); }
.ts-xi p { margin: 0; font-size: 13.5px; color: var(--muted); }
.ts-xi .out { text-decoration: line-through; text-decoration-color: #B02E1C; }
.ts-foot { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); max-width: 80ch; }

@media (max-width: 900px) { .ts-cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ts-bar { gap: 12px; }
  .ts-pick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; width: calc(100% + 32px); }
  .ts-pick::-webkit-scrollbar { display: none; }
  .ts-pick button { flex: none; }
  .ts-vs { width: 100%; }
  .ts-vs select { min-width: 0; flex: 1; }
  .ts-card { padding: 12px 10px 14px; }
  .ts-key .k b { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .ts-pick button, .ts-pick button i, .ts-chart .wedge, .ts-chart .vs-line { transition: none; } }

/* the side through the seasons (step 17) */
.ts-tl { grid-column: 1 / -1; margin-top: 6px; }
.ts-tl table { width: auto; min-width: 100%; border-collapse: collapse; }
.ts-tl th, .ts-tl td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.ts-tl th[scope="row"] { text-align: left; font-weight: 650; white-space: nowrap; }
.ts-tl th[scope="row"] i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.ts-tl thead button { font: inherit; font-size: 13px; font-weight: 650; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.ts-tl thead button[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.ts-tl .ts-bd { display: inline-block; min-width: 2.2em; }
.ts-tl p { margin: 8px 0 0; font-size: 13px; }
