/* Teacher class-progress page. Builds on style.css tokens; independent of reader.css. */
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 10; background: #fff; padding: 12px; min-height: 44px; }
.skip-link:focus { top: 12px; }
.site-head .wrap { flex-wrap: wrap; }
.cp-back { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.cp-main { padding-top: 28px; padding-bottom: 12px; }
.cp-main:focus { outline: none; }
.cp-main h1, .cp-main h2, .cp-main h3 { font-family: var(--font-head); line-height: 1.2; overflow-wrap: anywhere; }
.cp-title { font-size: clamp(1.9rem, 6vw, 2.6rem); margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.cp-level { font-family: var(--font-body); font-size: .9rem; font-weight: 800; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 12px; }
.cp-lede { color: var(--muted); font-size: 1.08rem; max-width: 62ch; margin: 0 0 18px; }
.cp-note { color: var(--muted); font-size: .92rem; max-width: 70ch; }

.cp-privacy { background: var(--accent-soft); border: 1px solid #b9d6be; border-radius: var(--radius); padding: 14px 18px; margin: 0 0 28px; }
.cp-privacy h2 { font-size: 1.15rem; margin: 0 0 6px; }
.cp-privacy ul { margin: 0; padding-left: 1.2em; }
.cp-privacy li { margin: 3px 0; }

.cp-section { background: #fffdf7; border: 1px solid var(--line); border-radius: 22px; padding: clamp(16px, 4vw, 30px); box-shadow: var(--shadow); margin-bottom: 26px; min-width: 0; }
.cp-section > h2 { font-size: clamp(1.4rem, 4.5vw, 1.8rem); margin: 0 0 6px; }

.cp-books { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 14px; align-items: start; }
.cp-book { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; min-width: 0; }
.cp-book h3 { font-size: 1.15rem; margin: 0 0 10px; }
.cp-book[data-state="not-started"], .cp-book[data-state="unreadable"] { background: #faf8f3; }
.cp-empty { color: var(--muted); font-weight: 700; margin: 6px 0; }
.cp-facts { margin: 0; display: grid; gap: 0; }
.cp-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.cp-facts > div:last-child { border-bottom: 0; }
.cp-facts dt { color: var(--muted); font-weight: 700; }
.cp-facts dd { margin: 0; font-weight: 800; text-align: right; overflow-wrap: anywhere; }

.cp-steps { padding-left: 1.3em; max-width: 70ch; }
.cp-steps li { margin: 4px 0; }
.cp-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.cp-tools .btn { white-space: normal; text-align: center; }
.cp-tools .btn:disabled { opacity: .55; cursor: default; }
.cp-import { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 14px 0 6px; padding: 14px; border: 2px dashed #b9c9b0; border-radius: 14px; background: #fff; }
.cp-import-label { font-weight: 800; }
.cp-import-label span { font-weight: 600; color: var(--muted); }
.cp-import input[type="file"] { min-height: 44px; width: 100%; min-width: 0; max-width: 100%; font: inherit; }
.cp-import input[type="file"]::file-selector-button { min-height: 44px; margin-right: 12px; padding: 8px 14px; border: 2px solid var(--accent); border-radius: 12px; background: #fff; color: var(--accent); font: inherit; font-weight: 800; cursor: pointer; }
.cp-import input[type="file"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cp-status { min-height: 1.5em; font-weight: 700; color: var(--ink); }
.cp-status:empty { margin: 0; }

.cp-table-wrap { margin-top: 10px; min-width: 0; }
.cp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
.cp-table caption { text-align: left; color: var(--muted); font-size: .9rem; padding: 0 0 8px; caption-side: top; }
.cp-table th, .cp-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cp-table thead th { background: var(--accent-soft); font-size: .85rem; }
.cp-table tbody th { font-weight: 800; overflow-wrap: anywhere; }

/* Narrow screens: each row becomes a labelled card (roles in class.js keep table semantics). */
@media screen and (max-width: 760px) {
  .cp-table, .cp-table caption, .cp-table tbody, .cp-table tr, .cp-table th, .cp-table td { display: block; width: 100%; }
  .cp-table { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
  .cp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cp-table tbody tr { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 0 0 12px; padding: 6px 12px; }
  .cp-table tbody th, .cp-table tbody td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
  .cp-table tbody tr > :last-child { border-bottom: 0; }
  .cp-table tbody th::before, .cp-table tbody td::before { content: attr(data-label); color: var(--muted); font-weight: 700; flex: 0 0 auto; }
  .cp-table tbody th, .cp-table tbody td { text-align: right; }
  .cp-table tbody th { font-size: 1.05rem; }
}
@media (max-width: 480px) {
  .site-head img { max-width: 58px; }
  .site-head .brand { font-size: 1rem; }
  .cp-tools .btn { flex: 1 1 100%; }
}

/* Ownership notice: on every screen and every printed page. */
.copyright { color: var(--muted); font-size: .78rem; line-height: 1.5; padding: 10px 0 26px; margin-top: 0; text-align: center; }

@media print {
  @page { margin: 14mm 12mm 18mm; @bottom-center { content: "© 2026–2027 WorldWise Learning and JurassicEnglish.com. All rights reserved. These materials are the legal property of WorldWise Learning and JurassicEnglish.com."; font-family: system-ui, sans-serif; font-size: 6.5pt; color: #6b6257; } }
  body { background: #fff; font-size: 11pt; }
  .site-head, .skip-link, .cp-lede, .cp-privacy, .cp-tools, .cp-import, .cp-status, .cp-steps, .cp-note, .foot,
  .cp-section[aria-labelledby="device-title"] { display: none !important; }
  .copyright { display: none !important; } /* printed by the @page footer above on every page */
  .cp-main { padding: 0; max-width: none; }
  .cp-title { font-size: 18pt; margin-bottom: 6pt; }
  .cp-level { color: #000; background: none; border: 1px solid #000; }
  .cp-section { box-shadow: none; border: 0; padding: 0; background: #fff; }
  .cp-section > h2 { font-size: 13pt; }
  .cp-table { display: table; box-shadow: none; border-radius: 0; font-size: 9pt; }
  .cp-table thead { display: table-header-group; }
  .cp-table th, .cp-table td { border: 1px solid #999; padding: 4pt 5pt; }
  .cp-table thead th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cp-table tr { break-inside: avoid; }
  .cp-table caption { color: #000; }
}
/* Learners (26 Oct): one section per reader on this device. */
#device-books.cp-books { display: block; }
.cp-learner { margin: 0 0 22px; }
.cp-learner > h3 { margin: 0; font-size: 1.25rem; }
.cp-id { margin: 2px 0 0; font-size: .85rem; color: #6b6355; font-family: ui-monospace, monospace; }
.cp-book h4 { font-size: 1.05rem; margin: 0 0 10px; }
.cp-table td[data-field="reviewed"] input { width: 24px; height: 24px; }
.cp-table td[data-field="reviewed"] { text-align: center; }
