/* Curricula (includes/curriculum.php): the curriculum pages (/curriculum/, /curriculum/<slug>/)
   and the two sections added to a lesson plan pack's page. One file for both themes: the purple
   skin's variables (--pv-*, --k-*) when they are there, the classic colors when not. */

.cu-page, .cu-part, .cu-res, .cu-more {
  --cu-ink: var(--pv-ink, #2d3748);
  --cu-muted: var(--pv-muted, #718096);
  --cu-accent: var(--pv-violet, #4f46e5);
  --cu-head: var(--pv-plum, #2d3748);
  --cu-line: var(--pv-line, #e2e8f0);
  --cu-soft: var(--pv-bg, #f7f8fc);
  --cu-print: var(--k-printable, #634bf5);
  --cu-make: var(--k-maker, #ff7800);
  --cu-tool: var(--k-tool, #2563eb);
  --cu-quiz: var(--k-quiz, #2fa776);
}

/* ---- Resource lines: a kind pill, then the name and its detail ---- */
/* .edu-section li (both themes) is a flex row with a check mark: not these */
.edu-section ul.cu-use, .cu-use { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.edu-section .cu-use li, .cu-use li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 0; font-size: 15px; line-height: 1.45; color: var(--cu-ink); }
.edu-section .cu-use li::before { content: none; display: none; }
.cu-kind { display: block; box-sizing: border-box; text-align: center; border-radius: 999px; padding: 2px 6px; font-size: 10.5px; line-height: 1.5; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #fff; background: var(--cu-print); white-space: nowrap; }
.cu-k-make { background: var(--cu-make); }
.cu-k-tool { background: var(--cu-tool); }
.cu-k-quiz { background: var(--cu-quiz); }
.cu-what a { color: var(--cu-accent); font-weight: 600; text-decoration: none; }
.cu-what a:hover { text-decoration: underline; }
.cu-detail { color: var(--cu-muted); }
.cu-id { font-weight: 700; color: var(--cu-accent); }
.cu-star { color: #e0a100; }
.cu-note { color: var(--cu-muted); font-size: 14px; }

/* ---- On a lesson plan pack's page ---- */
/* the curriculum pill under the grade pill: orange and plum, as the Download button */
.cu-break { flex-basis: 100%; height: 0; }
a.cu-pill { display: inline-block; background: var(--pv-orange, #ff9500); color: var(--pv-plum, #341e60); border-radius: 999px; padding: 5px 14px; font-size: 13.5px; font-weight: 700; line-height: 1.3; text-decoration: none; }
a.cu-pill:hover { background: var(--pv-orange-d, #e07f00); color: var(--pv-plum, #341e60); }
.edu-section h2.cu-part-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cu-part-head a { color: inherit; text-decoration: none; }
.cu-part-head a:hover { color: var(--cu-accent); }
.cu-part-unit { color: var(--cu-accent); white-space: nowrap; flex: none; }
.cu-part p, .cu-res > p { color: var(--cu-ink); line-height: 1.55; }
.cu-part p a, .cu-also a { color: var(--cu-accent); font-weight: 600; }
.cu-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 10px; }
.cu-step { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1.5px solid var(--cu-line); border-radius: 16px; text-decoration: none; color: var(--cu-ink); background: #fff; }
.cu-step span { font-size: 12.5px; color: var(--cu-muted); }
.cu-step strong { color: var(--cu-head); font-size: 15.5px; line-height: 1.3; }
.cu-step:hover { border-color: var(--cu-accent); }
.cu-next { text-align: right; }
.cu-none { border: 0; background: none; padding: 0; }
.cu-also { font-size: 14.5px; margin: 0; }
.cu-lessons { display: grid; gap: 4px; margin-top: 10px; }
.cu-lesson { padding: 12px 0; border-top: 1px solid var(--cu-line); scroll-margin-top: 90px; }
.cu-lesson:target { background: color-mix(in srgb, var(--cu-accent) 7%, #fff); border-radius: 12px; padding-left: 10px; padding-right: 10px; }
.cu-lesson h3 { margin: 0 0 4px !important; font-size: 16.5px !important; color: var(--cu-head) !important; text-transform: none !important; }

/* ---- The curriculum pages ---- */
.cu-page { color: var(--cu-ink); }
.cu-intro { font-size: 17px; line-height: 1.6; max-width: 880px; margin: 0 0 16px; }
.cu-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 22px; color: var(--cu-muted); font-size: 15px; }
.cu-facts strong { color: var(--cu-head); font-size: 22px; margin-right: 4px; }
.cu-un { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--cu-accent); }

.cu-unit { background: #fff; border: 1px solid var(--cu-line); border-radius: 24px; padding: 24px; margin: 0 0 18px; scroll-margin-top: 90px; }
body.pv-page .cu-unit, .pv-wrap .cu-unit { border: 0; box-shadow: 0 6px 20px rgba(52,30,96,.05); }
.cu-unit-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.cu-unit-head h2 { margin: 0; font-size: 24px; color: var(--cu-head); }
.cu-span { color: var(--cu-muted); font-size: 14px; }
.cu-unit-intro { line-height: 1.55; margin: 10px 0 14px; max-width: 900px; }
.cu-packs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.cu-pack { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1.5px solid var(--cu-line); border-radius: 14px; text-decoration: none; color: var(--cu-head); font-weight: 600; font-size: 14.5px; background: #fff; }
.cu-pack img { width: 38px; height: 49px; object-fit: cover; border-radius: 6px; border: 1px solid var(--cu-line); background: #fff; }
.cu-pack:hover { border-color: var(--cu-print); }
.cu-days { display: grid; }
.cu-week { font-weight: 700; color: var(--cu-head); font-size: 14px; letter-spacing: .3px; padding: 14px 0 6px; border-bottom: 2px solid var(--cu-line); }
.cu-week small { font-weight: 400; color: var(--cu-muted); }
.cu-day { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr); gap: 4px 14px; padding: 8px 0; border-bottom: 1px solid var(--cu-line); align-items: baseline; font-size: 15px; line-height: 1.4; }
.cu-dn { color: var(--cu-muted); font-size: 13px; }
.cu-dw a { color: var(--cu-ink); text-decoration: none; font-weight: 600; }
.cu-dw a:hover { color: var(--cu-accent); }
.cu-dw a.cu-check { color: var(--cu-accent); }
.cu-dc { color: var(--cu-muted); }

.cu-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 6px 0 20px; }
.cu-card { display: flex; gap: 16px; padding: 18px; background: #fff; border: 1.5px solid var(--cu-line); border-radius: 24px; text-decoration: none; color: var(--cu-ink); }
.pv-wrap .cu-card { border-color: transparent; box-shadow: 0 6px 20px rgba(52,30,96,.05); }
.cu-card:hover { border-color: var(--cu-accent); }
.cu-card img { width: 92px; height: 119px; object-fit: cover; border-radius: 10px; border: 1px solid var(--cu-line); flex: none; }
.cu-card-body { display: flex; flex-direction: column; gap: 6px; }
.cu-card-body strong { font-size: 20px; color: var(--cu-head); }
.cu-card-body span { color: var(--cu-muted); font-size: 14.5px; }
.cu-card-units { line-height: 1.45; }
.cu-more { color: var(--cu-muted); }
.cu-more a { color: var(--cu-accent); font-weight: 600; }

@media (max-width: 700px) {
  .cu-steps { grid-template-columns: 1fr; }
  .cu-next { text-align: left; }
  .cu-none { display: none; }
  .cu-unit { padding: 18px 16px; }
  .cu-day { grid-template-columns: 52px minmax(0, 1fr); }
  .cu-dc { grid-column: 2; font-size: 14px; }
  .edu-section .cu-use li, .cu-use li { grid-template-columns: 1fr; gap: 2px; }
  .cu-kind { justify-self: start; padding: 2px 10px; }
}
