/* The statistics page. Colors are the site tokens from application.css, so dark mode follows. */
.st{--st-digit-top:var(--muted);--st-digit-bottom:var(--fg)}
.st .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.st h1{font-size:2rem}

.st-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem 2rem;flex-wrap:wrap;margin-bottom:1rem}
.st-pick{display:flex;gap:.6rem 1.2rem;flex-wrap:wrap;align-items:center;margin-top:.6rem}
.st-pick label{display:flex;align-items:center;gap:.5rem;font-weight:500}
.st-pick select{max-width:100%}
.st-best{text-align:right;min-width:0}
.st-pb{display:flex;align-items:baseline;justify-content:flex-end;gap:.7rem;flex-wrap:wrap}
.st-pbl{font:italic 400 1.15rem/1.2 Arial,Helvetica,"Liberation Sans",sans-serif;color:var(--muted)}
.st-digits{font:italic 400 4.2rem/1 Arial,Helvetica,"Liberation Sans",sans-serif;white-space:nowrap;padding:0 .08em .06em;
  background:linear-gradient(to bottom,var(--st-digit-top),var(--st-digit-bottom) 62%);-webkit-background-clip:text;background-clip:text;color:transparent}
.st-avgs{margin:.2rem 0 0;font-size:.9rem}
.st-avgs b{color:var(--fg);font-variant-numeric:tabular-nums;font-weight:600}

.st-main{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:1.5rem;align-items:start}
.st-graph{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:.6rem .6rem .4rem;min-width:0}
.st-graph .empty{padding:3rem 1rem}
.sc{display:block;width:100%;height:auto;overflow:visible}
.sc-grid{stroke:var(--line);stroke-width:1}
.sc-label,.sc-date{fill:var(--muted);font:400 13px var(--body);font-variant-numeric:tabular-nums}
.sc-dot{fill:var(--accent);fill-opacity:.55}
.sc-dot:hover{fill-opacity:1;stroke:var(--fg);stroke-width:1}
.sc-avg{stroke:var(--fg);stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.sc-dnf{fill:none;stroke:var(--warn);stroke-width:1.6}
.st-key{display:flex;gap:.4rem 1rem;flex-wrap:wrap;align-items:center;margin:.3rem .3rem .2rem}
.st-k{display:inline-block;vertical-align:middle;margin-right:.25rem}
.st-k.dot{width:.6rem;height:.6rem;border-radius:50%;background:var(--accent);opacity:.7}
.st-k.avg{width:1.1rem;height:0;border-top:2px solid var(--fg);margin-left:.2rem}
.st-k.dnf{width:.6rem;height:.6rem;border-radius:50%;border:1.5px solid var(--warn);margin-left:.2rem}

.st-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.st-note{background:var(--ok-bg);color:var(--ok);border-radius:8px;padding:.5rem .8rem;margin:0 0 1rem}
.st-note a{color:inherit;text-decoration:underline}
.st-tbl{border-collapse:separate;border-spacing:0;width:100%;font-variant-numeric:tabular-nums}
.st-tbl thead th{font-weight:500;font-size:.8rem;color:var(--muted);text-align:right;padding:.2rem .5rem .5rem;vertical-align:bottom;line-height:1.25}
.st-tbl tbody th{font-weight:400;text-align:right;padding:.5rem .7rem .5rem 0;white-space:nowrap;color:var(--muted)}
.st-tbl td{text-align:right;padding:.5rem .6rem;border:1px solid var(--line);border-width:1px 0 0 1px;background:var(--surface);font-size:1.02rem}
.st-tbl td:last-child{border-right-width:1px}
.st-tbl tbody tr:last-child td{border-bottom-width:1px}
.st-tbl tbody tr:first-child td:nth-child(2){border-top-left-radius:8px}
.st-tbl tbody tr:first-child td:last-child{border-top-right-radius:8px}
.st-tbl tbody tr:last-child td:nth-child(2){border-bottom-left-radius:8px}
.st-tbl tbody tr:last-child td:last-child{border-bottom-right-radius:8px}
.st-tbl td.muted{color:var(--muted)}
.st-table .small{margin:.6rem 0 0}

@media (max-width:860px){
  .st-main{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  .st h1{font-size:1.7rem}
  .st-best{text-align:left;width:100%}
  .st-pb{justify-content:flex-start}
  .st-digits{font-size:3.4rem}
  .sc-label,.sc-date{font-size:17px}
  .st-tbl td{padding:.45rem .5rem;font-size:.95rem}
}


/* More charts under the main graph: two side by side, then the practice calendar across the page. */
.st-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;margin-top:1.5rem}
.st-card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:.8rem .9rem .6rem;min-width:0}
.st-card h2{font-size:1.05rem;margin:0 0 .3rem}
.st-card svg{display:block;height:auto}
.st-wait{padding:2.2rem .5rem;text-align:center;margin:0}
.st-k.best,.st-k.mean{display:inline-block;width:1.1rem;height:0;border-top:2.5px solid var(--accent);vertical-align:middle;margin:0 .3rem 0 .2rem}
.st-k.mean{border-top-color:var(--fg);margin-left:.9rem}
.st-cal{margin-top:1.5rem}
.st-calrow{display:flex;gap:1.2rem 2.5rem;align-items:center;flex-wrap:wrap}
.st-calscroll{overflow-x:auto;flex:1 1 26rem;min-width:0}
.st-calscroll svg{width:100%;max-width:31rem}
.st-nums{display:grid;grid-template-columns:repeat(2,auto);gap:.9rem 2.2rem;margin:0;flex:0 1 auto}
.st-nums div{display:flex;flex-direction:column}
.st-nums dd{margin:0;font:italic 400 2.1rem/1.05 Arial,Helvetica,"Liberation Sans",sans-serif;white-space:nowrap;
  background:linear-gradient(to bottom,var(--st-digit-top),var(--st-digit-bottom) 62%);-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.1em}
.st-nums dt{color:var(--muted);font-size:.82rem}
.st-fn{text-decoration:none;margin-left:.1rem}
.st-wca td,.st-wca th{border-top:2px solid var(--line)}
.st-fnote{margin:1.6rem 0 0;max-width:52rem;line-height:1.5}
@media (max-width:760px){ .st-more{grid-template-columns:minmax(0,1fr)} }
/* Where the times are kept (the same mark as on the timer and in the iPhone app). */
.st-sync{display:inline-flex;align-items:center;gap:.35em;margin-left:.6em;padding:.25em .7em;vertical-align:middle;border:1px solid var(--line);border-radius:999px;color:var(--muted);font:500 .9rem/1.2 var(--body, inherit);text-decoration:none}
.st-sync svg{width:1.1em;height:1.1em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
