/* Slothy's Treehouse sections (js/slothy/). Every rule is scoped to her page. */

/* Progress, moved from her app (2026-10-19), on the grown-up app's light theme */
.kid-slothy h3 { font-size: 1.08rem; margin: 0 0 10px; line-height: 1.25; text-wrap: balance; }
.kid-slothy p { margin: 0 0 10px; text-wrap: pretty; }
.kid-slothy .stack { display: flex; flex-direction: column; gap: 12px; }
.kid-slothy .stack > .card { margin: 0; }
.kid-slothy .stack > p, .kid-slothy .stack > div > p:last-child { margin-bottom: 0; }
.kid-slothy .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.kid-slothy .muted { color: var(--soft); }
.kid-slothy .small { font-size: 0.9rem; }
.kid-slothy .card { overflow-wrap: anywhere; }

.kid-slothy .headline { display: flex; flex-direction: column; gap: 6px; font-size: 1.05rem; font-weight: 700; text-wrap: pretty; }

.kid-slothy .stat { font-size: 2.8rem; font-weight: 700; line-height: 1; color: var(--accent); }
.kid-slothy .stat-label { font-size: 0.9rem; color: var(--soft); text-wrap: pretty; }

.kid-slothy .status { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.kid-slothy .status.solid { background: #e2f4e7; color: #1d5e33; }
.kid-slothy .status.slow { background: #fff1cf; color: #6b4a00; }
.kid-slothy .status.notYet { background: #fde7e4; color: #8a1f14; }
.kid-slothy .status.unchecked { background: #eeeeee; color: #545a66; }

.kid-slothy .table-wrap { overflow-x: auto; }
.kid-slothy table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.kid-slothy th, .kid-slothy td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kid-slothy th { color: var(--soft); font-weight: 700; }
.kid-slothy td.num, .kid-slothy th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kid-slothy td.day { white-space: nowrap; }

.kid-slothy .week { display: flex; gap: 6px; }
.kid-slothy .week div { flex: 1; min-width: 0; text-align: center; font-size: 0.8rem; color: var(--soft); }
.kid-slothy .week i { display: block; height: 26px; border-radius: 7px; background: var(--line); margin-bottom: 4px; }
.kid-slothy .week i.on { background: var(--accent); }

.kid-slothy .bars { display: flex; flex-direction: column; gap: 10px; }
.kid-slothy .bar { display: grid; grid-template-columns: 5.2em minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 0.9rem; }
.kid-slothy .bar .track { height: 16px; background: #ece7dc; border-radius: 4px; overflow: hidden; }
.kid-slothy .bar .fill { height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.kid-slothy .bar .num { white-space: nowrap; font-variant-numeric: tabular-nums; }

.kid-slothy .chart { width: 100%; height: auto; display: block; margin: 8px 0; }
.kid-slothy .chart .axis { stroke: var(--line); stroke-width: 1; }
.kid-slothy .chart .gridline { stroke: #ece7dc; stroke-width: 1; }
.kid-slothy .chart .series { stroke: var(--accent); stroke-width: 2; fill: none; }
.kid-slothy .chart .pt { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.kid-slothy .chart text { fill: var(--soft); font-size: 15px; font-family: inherit; }
.kid-slothy .chart .lbl { fill: var(--ink); font-weight: 700; }

.kid-slothy .summary-text {
  display: block; width: 100%; font: inherit; font-size: 0.9rem; line-height: 1.45; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); resize: vertical;
}
.kid-slothy button.copy {
  min-height: 44px; margin: 10px 0 6px; padding: 8px 20px; border-radius: 12px;
  border: 1px solid var(--accent); background: var(--card); color: var(--accent); font-weight: 600;
}

.kid-slothy .banner { padding: 10px 14px; border-radius: 12px; background: #fff1cf; color: #6b4a00; font-size: 0.9rem; margin: 0; }
.kid-slothy .banner.bad { background: #fde7e4; color: #8a1f14; }
.kid-slothy .banner.ok { background: #e2f4e7; color: #1d5e33; }

/* Settings, moved from her app (2026-10-19) */
.kid-slothy .field .hint { display: block; margin-top: 4px; }
.kid-slothy .settings form .banner { margin-top: 10px; }
.kid-slothy .settings > .hint { margin: 0; }

/* Fluency read and word check, moved from her app (2026-10-19) */
.kid-slothy .topbar { display: flex; align-items: center; gap: 8px; }
.kid-slothy .topbar h2 { flex: 1; min-width: 0; margin: 0; font-size: 1.15rem; text-wrap: balance; }
.kid-slothy .spacer { flex: 1; }
.kid-slothy .center { justify-content: center; }
.kid-slothy .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.kid-slothy .card.stack { margin: 0; }
.kid-slothy .stack > h3, .kid-slothy .card.stack > p { margin: 0; }
.kid-slothy button.quiet, .kid-slothy button.secondary, .kid-slothy button.rec-play {
  min-height: 44px; padding: 8px 16px; border-radius: 12px; font-weight: 600;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.kid-slothy button.secondary, .kid-slothy button.rec-play { border-color: var(--accent); color: var(--accent); }
.kid-slothy .row .primary { width: auto; margin-top: 0; padding: 8px 22px; }
.kid-slothy .primary.big { min-height: 60px; font-size: 1.25rem; }
.kid-slothy .story-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left;
  min-height: 56px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600;
}
.kid-slothy .story-row .muted { font-weight: 400; }
.kid-slothy .story-row.next { outline: 3px solid var(--accent); outline-offset: -1px; }
/* inline-block so the pill never splits across a line break */
.kid-slothy .next-tag { display: inline-block; font-size: 0.8rem; color: var(--accent); background: #e7f1ec; border-radius: 999px; padding: 1px 9px; }
.kid-slothy .read-bar { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 4px 0 8px; }
.kid-slothy .read-bar .primary { margin-top: 0; }
.kid-slothy .read-words { display: flex; flex-wrap: wrap; gap: 4px 2px; margin: 12px 0 0; }
.kid-slothy .rw { font: inherit; font-size: 1.2rem; line-height: 1.3; min-height: 44px; padding: 4px 6px; border: 0; border-radius: 8px; background: none; color: var(--ink); }
.kid-slothy .rw.err { background: #fde7e4; color: #8a1f14; text-decoration: line-through; font-weight: 700; }
.kid-slothy .rec-state.on { color: #a3261a; font-weight: 700; }
.kid-slothy .rec-player { display: flex; flex-direction: column; gap: 6px; }
.kid-slothy .rec-seek { padding: 0; border: 0; background: none; min-height: 36px; }
.kid-slothy .miss-rows { display: flex; flex-direction: column; gap: 12px; }
.kid-slothy .miss-row { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.kid-slothy .miss-word { font-size: 1.15rem; }
.kid-slothy .miss-play { min-height: 44px; }
.kid-slothy .miss-story summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.kid-slothy label.check { display: flex; gap: 10px; align-items: center; min-height: 44px; margin-bottom: 6px; }
.kid-slothy label.check input { width: 26px; height: 26px; min-height: 0; flex: none; }
.kid-slothy .bigword { font-size: min(72px, 15vw); font-weight: 700; text-align: center; padding: 32px 0; letter-spacing: 2px; overflow-wrap: anywhere; }
.kid-slothy .score3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kid-slothy .score3 button { min-height: 96px; font-size: 1.15rem; font-weight: 700; border: 0; border-radius: 14px; }
.kid-slothy .score3 .q { background: #e2f4e7; color: #1d5e33; }
.kid-slothy .score3 .s { background: #fff1cf; color: #6b4a00; }
.kid-slothy .score3 .m { background: #fde7e4; color: #8a1f14; }
.kid-slothy .score3.neutral button { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
