/* Shared checkpoint surfaces: deliberately scoped to student and parent views. */
.checkpoint-page, .learning-summary { color: #19243b; font: 15px/1.65 system-ui, sans-serif; overflow-wrap: anywhere; }
.checkpoint-page *, .learning-summary * { box-sizing: border-box; }
.checkpoint-page { max-width: 1100px; margin: 0 auto; padding: 40px 28px 72px; }
.checkpoint-page--focused { max-width: 900px; }
.checkpoint-page h1, .checkpoint-page h2, .checkpoint-page h3, .learning-summary h2 { color: #19243b; line-height: 1.25; font-weight: 750; }
.checkpoint-page h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.035em; margin: 10px 0 16px; }
.checkpoint-page h2, .learning-summary h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 10px; }
.checkpoint-page h3 { font-size: 18px; margin: 8px 0; }
.checkpoint-eyebrow { display: block; color: #5b52b2; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.checkpoint-hero { padding: 32px; border: 1px solid #dedff0; border-radius: 24px; background: linear-gradient(120deg, #f0edff, #f8faff 70%, #edf8f6); margin-bottom: 24px; }
.checkpoint-hero p { color: #536078; max-width: 650px; margin: 0 0 20px; }
.checkpoint-page .checkpoint-button, .learning-summary .checkpoint-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 20px; border: 1px solid transparent; border-radius: 12px; background: #5145b8; color: white; font: 650 14px/1.5 system-ui, sans-serif; text-decoration: none; cursor: pointer; text-align: center; transition: background .15s ease; white-space: normal; }
.checkpoint-page .checkpoint-button:hover, .learning-summary .checkpoint-button:hover { background: #3e348f; }
.checkpoint-page .checkpoint-button--secondary { background: #fff; color: #5145b8; border-color: #dcd8f0; }
.checkpoint-page .checkpoint-button--secondary:hover { background: #f1eeff; }
.checkpoint-page .checkpoint-link { color: #5145b8; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.checkpoint-back { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; margin-bottom: 14px; }
.checkpoint-page :focus-visible, .learning-summary :focus-visible { outline: 3px solid #8478de; outline-offset: 4px; }
.checkpoint-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.checkpoint-stat { padding: 20px; border: 1px solid #e3e7ef; border-radius: 16px; background: white; }
.checkpoint-stat strong { display: block; font-size: 30px; line-height: 1.2; letter-spacing: -.03em; color: #443999; }
.checkpoint-stat span { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: #59647a; }
.checkpoint-panel { padding: 26px; background: #fff; border: 1px solid #e1e6ef; border-radius: 20px; margin-bottom: 22px; box-shadow: 0 8px 24px #18234204; }
.checkpoint-section-heading, .learning-summary-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.checkpoint-section-heading h2 { margin: 0; }
.checkpoint-muted { color: #5e6b80; font-size: 13px; }
.checkpoint-empty { padding: 22px; border-radius: 14px; background: #f4f8f8; color: #426368; }
.checkpoint-empty strong { display: block; color: #285a53; margin-bottom: 4px; }
.checkpoint-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid #e7ebf2; overflow-wrap: anywhere; }
.checkpoint-card p { color: #5e6b80; font-size: 13px; margin-top: 8px; }
.checkpoint-card .checkpoint-button { flex-shrink: 0; }
.checkpoint-card h3 a { color: #19243b; text-decoration: none; }
.checkpoint-card h3 a:hover { color: #5145b8; text-decoration: underline; }
.checkpoint-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.checkpoint-tag { display: inline-flex; align-items: center; border-radius: 7px; padding: 4px 9px; font-size: 11px; font-weight: 700; line-height: 1.5; color: #5e548a; background: #f0edfa; }
.checkpoint-tag--neutral { background: #eef2f7; color: #546277; }
.checkpoint-badge { padding: 12px 16px; background: #f1f7f5; border-radius: 12px; margin: 12px 0; color: #2f6055; font-size: 13px; }
.checkpoint-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; margin: 26px 0; gap: 8px; }
.checkpoint-steps li { border-top: 3px solid #dfe4ee; padding-top: 12px; color: #647086; font-size: 12px; }
.checkpoint-steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e9edf3; margin-bottom: 8px; font-size: 12px; }
.checkpoint-steps .is-complete { border-color: #3c8478; color: #30685f; }
.checkpoint-steps .is-complete b { background: #e0f0eb; }
.checkpoint-steps [aria-current=step] { border-color: #6554c0; color: #49399e; font-weight: 750; }
.checkpoint-steps [aria-current=step] b { background: #5145b8; color: white; }
.checkpoint-note { padding: 16px 20px; border: 1px solid #e2def2; border-radius: 14px; background: #f5f3fc; color: #595270; font-size: 13px; margin-bottom: 24px; }
.checkpoint-form > * + * { margin-top: 18px; }
.checkpoint-form h2 { margin-top: 0; font-size: 24px; }
.checkpoint-form p { color: #5e6b80; }
.checkpoint-form label { display: block; color: #28364d; font-size: 14px; font-weight: 650; }
.checkpoint-form textarea, .checkpoint-form select { display: block; width: 100%; border: 1px solid #cdd5e3; border-radius: 12px; background: #fcfdff; color: #19243b; padding: 14px; font: 16px/1.6 system-ui, sans-serif; margin-top: 8px; }
.checkpoint-form textarea { resize: vertical; min-height: 140px; }
.checkpoint-form select { max-width: 100%; width: auto; min-width: 170px; min-height: 48px; }
.checkpoint-form label:has(input[type=checkbox]) { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 12px; background: #f5f7fb; font-weight: 400; }
.checkpoint-form input[type=checkbox] { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; accent-color: #5145b8; }
.checkpoint-form details { padding: 16px; border: 1px solid #dfe5ee; border-radius: 12px; }
.checkpoint-form summary { cursor: pointer; font-weight: 650; color: #5145b8; }
.checkpoint-form details p { margin-top: 12px; }
.checkpoint-form-footer { border-top: 1px solid #e7ebf2; margin-top: 26px; padding-top: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.checkpoint-form-footer p { font-size: 12px; }
.checkpoint-evidence { margin: 24px 0; }
.checkpoint-evidence > div { padding: 18px 0; border-bottom: 1px solid #e5eaf1; }
.checkpoint-evidence dt { color: #5145b8; font-size: 12px; font-weight: 750; margin-bottom: 6px; }
.checkpoint-evidence dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.learning-summary { padding: 28px; background: linear-gradient(115deg, #fff, #f6f5fd); border: 1px solid #e0deef; border-radius: 20px; margin: 20px 0; }
.learning-summary-heading { margin-bottom: 0; }
.learning-summary h2 { margin: 0; font-size: 21px; }
.learning-summary .checkpoint-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.learning-summary-feedback { border-top: 1px solid #e1e5ee; padding: 14px 0 0; margin-top: 14px; font-size: 13px; color: #59647a; overflow-wrap: anywhere; }
.learning-summary-feedback strong { color: #28364d; }
@media (max-width: 600px) {
  .checkpoint-page { padding: 20px 14px 48px; }
  .checkpoint-hero, .checkpoint-panel, .learning-summary { padding: 20px; border-radius: 18px; }
  .checkpoint-page h1 { font-size: 28px; }
  .checkpoint-stats { gap: 8px; }
  .checkpoint-stat { padding: 14px 10px; border-radius: 12px; }
  .checkpoint-stat strong { font-size: 25px; }
  .checkpoint-stat span { font-size: 11px; }
  .learning-summary .checkpoint-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkpoint-card { flex-direction: column; align-items: stretch; gap: 14px; }
  .checkpoint-steps { gap: 6px; }
  .checkpoint-steps li { font-size: 10px; overflow-wrap: anywhere; }
  .checkpoint-note { padding: 14px; }
  .checkpoint-form-footer { align-items: stretch; flex-direction: column; }
  .checkpoint-form-footer .checkpoint-button { width: 100%; }
}
