/* The curriculum library (screens/curriculum.js, pdf_view.js). */
.curriculum .card, .cu-now, .cu-list, .cu-links, .cu-notes, .cu-files, .cu-empty { padding: 16px 20px; }
.curriculum .card + .card { margin-top: 14px; }
.curriculum .cu-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; }
.curriculum .cu-tab { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--card, #fff); border: 1.5px solid var(--line); font-weight: 800; color: var(--ink2); text-decoration: none; white-space: nowrap; }
.curriculum .cu-tab.on { background: var(--teal-dd); border-color: var(--teal-dd); color: #fff; }
.curriculum .cu-tab.special:not(.on) { border-style: dashed; }
.curriculum .cu-now { background: var(--mint); }
.curriculum .cu-tip { padding: 14px 20px; border: 1.5px dashed var(--teal-dd); }
.curriculum .cu-tip .hint { margin: 4px 0 10px; }
.curriculum .cu-now .lbl { font-weight: 800; color: var(--teal-dd); margin-bottom: 4px; }
.curriculum .cu-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.curriculum .cu-list-head h2.d { margin: 0; font-size: 20px; }
.curriculum .cu-search { width: 100%; margin: 10px 0 6px; }
.curriculum .cu-row { text-decoration: none; color: inherit; }
.curriculum .cu-sub { margin: -4px 0 12px; color: var(--ink3); font-weight: 700; }
.curriculum .cu-file + .cu-file { margin-top: 16px; padding-top: 16px; border-top: 2px dotted var(--line); }
.curriculum .cu-file-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.curriculum .cu-file-head .chip { margin: 0; }
.curriculum .cu-view { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.curriculum .cu-page { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.12); background: #fff; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.curriculum .cu-video { position: relative; width: 100%; max-width: 900px; }
.curriculum .cu-video video { width: 100%; border-radius: 8px; background: #000; display: block; }
.curriculum .cu-mark { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; text-align: center; color: rgba(255,255,255,.22); font-weight: 600; font-size: clamp(11px, 2.2vw, 16px); line-height: 1.4; transform: rotate(-20deg); overflow: hidden; white-space: pre-wrap; text-shadow: 0 0 2px rgba(0,0,0,.25); }
.curriculum .cu-links h3, .curriculum .cu-files h3 { margin: 0 0 6px; }
/* "Start with the usual tabs" wraps under "Add my own" on a phone, never past the card (audit, 1 Oct). */
.curriculum .cu-empty .sheet-foot { margin-top: 12px; flex-wrap: wrap; }
.curriculum .cu-empty .sheet-foot .btn { white-space: normal; text-align: center; line-height: 1.2; }
.cu-up { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cu-bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.cu-bar span { display: block; height: 100%; background: var(--teal-dd); }
.cu-ok { color: var(--teal-dd); font-weight: 800; font-size: 13px; }
.cu-pick { margin-top: 8px; display: inline-flex; cursor: pointer; }
.cu-tabform { padding: 14px 16px; margin-bottom: 12px; }
/* Box first, name beside it, left-aligned (".form label" stacks and centres; Agam, 1 Oct). */
.sheet .form label.cu-check { flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; gap: 10px; padding: 6px 0; font-weight: 600; }
.sheet .form label.cu-check input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; }
.att-plan { margin-top: 8px; display: inline-flex; }
.curriculum .cu-audio { width: 100%; max-width: 520px; }
.curriculum .cu-yt { padding: 10px 0; }
.curriculum .cu-yt-box { position: relative; width: 100%; max-width: 900px; aspect-ratio: 16 / 9; margin-top: 6px; }
.curriculum .cu-yt-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }

/* The age tabs: 44px targets on a phone (1.4.2). */
@media (max-width: 960px) {
  .curriculum .cu-tab { display: inline-flex; align-items: center; min-height: 44px; }
}
/* The same on any touch screen, e.g. an iPad held sideways (9 Oct). */
@media (pointer: coarse) {
  .curriculum .cu-tab { display: inline-flex; align-items: center; min-height: 44px; }
}
