/* The coaching dashboard's blocks (shared/coaching_kpi.js), in the section pages' look so they read the same on the
   coaching page, Kehity and Pelaa. Colours: yellow the brand, orange work on this, green keep doing, grey around the middle. */
:root { --ck-card: #191d26; --ck-in: #1f2430; --ck-line: #2b313d; --ck-line2: #2e3442; --ck-text: #f4f4f1; --ck-mute: #a3a9b6;
  --ck-y: #f3e42d; --ck-work: #ff9a3d; --ck-keep: #4cd17a; --ck-ok: #7d8596;
  --ck-cond: 'Barlow Condensed', 'Roboto Condensed', 'Arial Narrow', sans-serif-condensed, system-ui, sans-serif; }
.ck-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--ck-card); border: 1px solid var(--ck-line);
  border-radius: 14px; color: var(--ck-text); min-width: 0; }
.ck-h, .ck-h2 { margin: 0; font: 800 21px/1.05 var(--ck-cond); font-stretch: condensed; text-transform: uppercase; }
.ck-h { font-size: 26px; }
.ck-ey { font: 700 13px/1.2 var(--ck-cond); font-stretch: condensed; letter-spacing: .08em; text-transform: uppercase; color: var(--ck-work); }
.ck-good .ck-ey { color: var(--ck-keep); }
.ck-hb { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
/* The tiles */
.ck-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ck-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 12px; background: var(--ck-card);
  border: 1px solid var(--ck-line); border-radius: 12px; min-width: 0; overflow: hidden; color: var(--ck-text); }
.ck-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ck-y); }
.ck-tile.ck-work::before { background: var(--ck-work); } .ck-tile.ck-keep::before { background: var(--ck-keep); }
.ck-n { font: 800 38px/1 var(--ck-cond); font-stretch: condensed; }
.ck-n small { font-size: 20px; color: var(--ck-mute); }
.ck-n-sm { font-size: 28px; color: var(--ck-y); }
.ck-l { font-size: 13px; color: var(--ck-mute); }
.ck-bar { display: block; height: 6px; border-radius: 3px; background: var(--ck-in); overflow: hidden; margin-top: 4px; }
.ck-bar i { display: block; height: 100%; background: var(--ck-y); border-radius: 3px; }
.ck-spark { position: absolute; right: 12px; top: 14px; width: 42%; max-width: 110px; height: 32px; color: var(--ck-y); }
.ck-spark-wide { position: static; width: 120px; max-width: none; color: var(--ck-work); }
.ck-good .ck-spark-wide { color: var(--ck-keep); }
/* The hero */
.ck-hero { border-left: 4px solid var(--ck-work); }
.ck-hero.ck-good { border-left-color: var(--ck-keep); }
.ck-big { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ck-xl { font: 800 64px/.9 var(--ck-cond); font-stretch: condensed; color: var(--ck-work); }
.ck-good .ck-xl { color: var(--ck-keep); }
.ck-sub { display: flex; flex-direction: column; gap: 6px; color: var(--ck-mute); font-size: 14px; }
.ck-tip { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--ck-in); font-size: 14px; line-height: 1.4; }
.ck-tip b { color: var(--ck-y); }
.ck-hero > a, .ck-hero > button { align-self: flex-start; }
/* The place in the group */
.ck-rank { display: flex; flex-direction: column; gap: 4px; }
.ck-track { position: relative; display: block; height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, rgba(255, 154, 61, .35), rgba(125, 133, 150, .25) 50%, rgba(76, 209, 122, .35)); }
/* right to left: the weakest end is on the right, as the labels and the dot (inset-inline-start) are */
[dir="rtl"] .ck-track { background: linear-gradient(270deg, rgba(255, 154, 61, .35), rgba(125, 133, 150, .25) 50%, rgba(76, 209, 122, .35)); }
.ck-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: #6cb8ff; }
.ck-dot { position: absolute; top: 50%; width: 18px; height: 18px; margin-block-start: -9px; margin-inline-start: -9px; border-radius: 50%; border: 3px solid var(--ck-card); background: var(--ck-ok); }
.ck-dot.ck-work { background: var(--ck-work); } .ck-dot.ck-keep { background: var(--ck-keep); }
.ck-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ck-mute); }
/* The ladder */
.ck-ladder { display: flex; flex-direction: column; gap: 8px; }
.ck-lr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 84px; gap: 12px; align-items: center; font-size: 14px; }
.ck-lt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-lb { position: relative; display: block; height: 12px; border-radius: 6px; background: var(--ck-in); }
.ck-lb i { display: block; height: 100%; border-radius: 6px; background: var(--ck-ok); }
.ck-lb i.ck-work { background: var(--ck-work); } .ck-lb i.ck-keep { background: var(--ck-keep); }
.ck-lv { text-align: right; white-space: nowrap; font: 700 16px/1 var(--ck-cond); font-stretch: condensed; }
.ck-ladder-ends { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 84px; column-gap: 12px; }
.ck-ladder-ends span:first-child { grid-column: 2; grid-row: 1; justify-self: start; }
.ck-ladder-ends span:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: center; }
.ck-ladder-ends span:last-child { grid-column: 2; grid-row: 1; justify-self: end; }
/* Next to unlock */
.ck-unlock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ck-ur { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ck-ring { flex: none; width: 52px; height: 52px; }
.ck-ring-bg { fill: none; stroke: var(--ck-in); stroke-width: 5; }
.ck-ring-on { fill: none; stroke: var(--ck-y); stroke-width: 5; stroke-linecap: round; }
.ck-ring text { fill: var(--ck-text); font: 700 11px var(--ck-cond); }
.ck-ut { font-size: 13px; line-height: 1.25; }
/* Points won per match */
.ck-cols { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding-top: 4px; border-bottom: 1px solid var(--ck-line2); }
.ck-col { flex: 1 1 0; max-width: 34px; height: 100%; display: flex; align-items: flex-end; }
.ck-col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--ck-y); opacity: .55; }
.ck-col:last-child i { opacity: 1; }
/* Pelaa's card: three smaller tiles, then rows that open the dashboard */
.ck-y { color: var(--ck-y); }
.ck-home { gap: 12px; }
.ck-tiles.ck-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ck-3 .ck-tile { background: var(--ck-in); border-color: var(--ck-line2); padding: 12px 10px 10px 14px; }
.ck-3 .ck-n { font-size: 30px; }
.ck-3 .ck-n small { font-size: 16px; }
.ck-3 .ck-spark { position: static; width: 100%; max-width: none; height: 22px; margin-top: 2px; }
.ck-hrow { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0 0; border-top: 1px solid var(--ck-line); color: inherit; text-decoration: none; }
.ck-hrow .ck-ring { width: 44px; height: 44px; }
.ck-hgr { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-ht { font: 700 17px/1.15 var(--ck-cond); font-stretch: condensed; }
.ck-hrow:hover .ck-ht { color: var(--ck-y); }
.ck-arrow { color: var(--ck-mute); font-size: 22px; line-height: 1; }
.ck-home > .sp-bt { align-self: flex-start; }
/* Layouts the pages put the blocks in */
.ck-dash { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.ck-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 14px; align-items: start; }
.ck-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 1000px) {
  .ck-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-spark { position: static; width: 100%; max-width: none; height: 22px; margin-top: 2px; }   /* under the number, never over it */
}
@media (max-width: 760px) {
  .ck-grid { grid-template-columns: minmax(0, 1fr); }
  .ck-unlock { grid-template-columns: minmax(0, 1fr); }
  /* the rule's name on its own line, the bar under it as wide as the card */
  .ck-lr, .ck-ladder-ends { grid-template-columns: minmax(0, 1fr) 60px; gap: 4px 10px; }
  .ck-lt { grid-column: 1 / -1; }
  .ck-ladder-ends span:first-child, .ck-ladder-ends span:nth-child(2), .ck-ladder-ends span:last-child { grid-column: 1; }
  .ck-tiles.ck-3 { gap: 6px; }
  .ck-3 .ck-tile { padding: 10px 8px 8px 12px; }
  .ck-3 .ck-n { font-size: 26px; }
  .ck-xl { font-size: 52px; }
  .ck-card { padding: 16px; }
}
/* PA-1519: the coaching checklist block (shared/checklist_block.js) */
.ck-rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ck-rules li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--ck-line); font-size: 14px; }
.ck-rules li:first-child { border-top: 0; }
.ck-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ck-pick select { flex: 1 1 200px; min-width: 0; max-width: 100%; min-height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid #4a5160;
  background: var(--ck-in); color: var(--ck-text); font: inherit; font-size: 14px; }
.ck-go { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 16px; border-radius: 999px;
  background: var(--ck-y); color: #15170a; font-weight: 700; text-decoration: none; align-self: flex-start; }
