/* My study data (/my/): written through the site's shell (page.py my_page), so the header, its keys, the layout and the
   foot are the site's. This sheet holds the page's own parts, one column like the guides pages, and the header and foot
   words at the readability floor. Family follows the shared token. */
/* The colours are the lesson page's reading palette (site/scss/_reading-scan.scss names .pg-my beside .pg-lesson), light and dark. */
.pg-my { --study-bg:var(--bg); --study-ink:var(--ink); --study-line:var(--line); --study-accent:var(--accent); --study-tint:var(--accent-soft); background:var(--study-bg); color:var(--study-ink); font:18px/1.6 var(--ui); }
.pg-my .lay { display:block; max-width:800px; margin:0 auto; padding:40px 24px 72px; }
.pg-my main { min-width:0; }
/* The site's header and foot, at the floor: words 15 px in the ink colour, key edges that read against the panel. */
.pg-my .top-tools button, .pg-my .crumbs, .pg-my .crumbs a { font-size:15px; color:var(--ink); }
.pg-my .foot, .pg-my .foot p, .pg-my .foot a { color:var(--ink); font-size:15px; }
@media (min-width:600px) { .pg-my .top-tools button { border-color:var(--study-line); } }
.pg-my h1,.pg-my h2,.pg-my h3 { font-family:var(--ui); color:var(--study-ink); letter-spacing:-.025em; border:0; padding:0; }
.pg-my h1 { font-size:36px; line-height:1.15; margin:0 0 16px; }
.pg-my h2 { font-size:28px; line-height:1.2; margin:0 0 20px; }
.pg-my h3 { font-size:22px; line-height:1.35; margin:24px 0 16px; }
.pg-my main p { max-width:68ch; margin:12px 0 20px; font-size:18px; }
.pg-my .study-lead { font-size:22px; max-width:40ch; margin-bottom:40px; text-wrap:balance; }
.pg-my main > section { margin:0; padding:32px 0; border-top:1px solid var(--study-line); }
.pg-my #study-continue { background:var(--study-tint); padding:28px; border:1px solid var(--study-line); border-radius:12px; margin-bottom:32px; }
.pg-my main a { color:var(--study-ink); text-underline-offset:4px; }
.pg-my main a:hover { text-decoration-thickness:2px; }
.pg-my main button,.pg-my main select,.pg-my main textarea,.pg-my main input { font:18px/1.4 var(--ui); color:var(--study-ink); background:var(--study-bg); border:1px solid var(--study-line); border-radius:6px; padding:10px 14px; min-height:44px; max-width:100%; box-shadow:none; }
.pg-my main button { cursor:pointer; white-space:nowrap; }
.pg-my main button:hover { background:var(--study-tint); }
.pg-my main :focus-visible { outline:3px solid var(--study-accent); outline-offset:4px; }
.pg-my .study-primary,.pg-my #export-link { display:inline-flex; gap:20px; justify-content:space-between; padding:12px 18px; border-radius:6px; background:var(--study-accent); color:var(--study-bg); text-decoration:none; font-size:18px; font-weight:650; }
.study-stats { display:grid; grid-template-columns:minmax(0,1fr); gap:28px; margin:0; }
.study-stats dt { font-size:18px; font-weight:600; }
.study-stats dd { font-size:36px; line-height:1.2; margin:12px 0; font-variant-numeric:tabular-nums; }
.study-stats .study-unavailable { font-size:22px; padding-block:8px; }
.study-stats .study-stat-note { font-size:18px; line-height:1.6; }
.study-course { margin:28px 0; }
.study-unit-name { font-size:18px; line-height:1.45; overflow-wrap:anywhere; }
.study-unit-count,.study-unit-number { font-size:18px; line-height:1.45; font-variant-numeric:tabular-nums; white-space:nowrap; }
/* Progress bars line up whatever the number of lessons. */
.pg-my .study-unit { display:grid; grid-template-columns:28px minmax(0,1fr) 64px; align-items:start; gap:18px; padding:18px 0; border-top:1px solid var(--study-line); text-decoration:none; }
.study-unit-count { text-align:right; }
.pg-my progress { display:block; appearance:none; width:100%; height:8px; margin:12px 0 0; border:1px solid var(--study-line); border-radius:2px; overflow:hidden; background:var(--study-bg); color:var(--study-accent); }
.pg-my progress::-webkit-progress-bar { background:var(--study-bg); }
.pg-my progress::-webkit-progress-value { background:var(--study-accent); }
.pg-my progress::-moz-progress-bar { background:var(--study-accent); }
.study-again { display:flex; justify-content:space-between; gap:20px; padding:16px 0; border-bottom:1px solid var(--study-line); }
#recall-links { display:grid; gap:12px; }
#recall-links a { padding:8px 0; }
.pg-my #questions [role=tablist] { display:flex; flex-wrap:nowrap; align-items:flex-start; gap:8px; overflow:auto; padding:6px; margin-inline:-6px; }
.pg-my #questions [role=tab] { font-size:15px; padding:10px 12px; flex:none; border:1px solid var(--study-line); }
.pg-my #questions [aria-selected=true] { background:var(--study-accent); color:var(--study-bg); }
.pg-my textarea { display:block; width:100%; margin-top:8px; }
.pg-my main select { display:block; margin-top:8px; }
.pg-my #import-file { display:block; width:100%; margin:12px 0; padding:8px; }
.pg-my input::file-selector-button { font:15px var(--ui); padding:10px; margin-right:8px; background:var(--study-tint); color:var(--study-ink); border:1px solid var(--study-line); border-radius:4px; }
.pg-my small { font-size:15px; }
.pg-my #study-delete button { border:2px solid var(--study-ink); }
#study-status:empty { display:none; }
.pg-my .study-primary { white-space:nowrap; }
.pg-my .study-empty + a { display:inline-block; padding-block:8px; }
/* One hairline between parts: the last row of a list leaves the line to the next part's own rule. */
.pg-my .study-again:last-child { border-bottom:0; }
.pg-my .study-stats > div:last-child { border-bottom:0; padding-bottom:0; }
@media(max-width:600px) {
  .pg-my .lay { padding:32px 16px 56px; }
  .pg-my #study-continue { padding:20px; }
  .pg-my .study-unit { gap:12px; grid-template-columns:22px minmax(0,1fr) 64px; }
  .study-stats { grid-template-columns:1fr; gap:16px; }
  .study-stats > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; border-bottom:1px solid var(--study-line); padding-bottom:16px; }
  .study-stats dt { align-self:center; }
  .study-stats dd { margin:0; }
  .study-stats .study-unavailable { font-size:18px; padding:0; align-self:center; }
  .study-stats .study-stat-note { grid-column:1 / -1; }
}
@media(forced-colors:active) { .pg-my progress { appearance:auto; } .pg-my .study-primary { border:2px solid ButtonText; } }
