/* Self-contained worksheets use the site's light navigation and page background. */
.ws-page{max-width:900px;padding-block:34px 60px;line-height:1.65}
.ws-back{display:inline-flex;align-items:center;min-height:44px;color:#0757c2;font-size:14px;margin-bottom:22px}
.ws-intro{max-width:750px;margin-bottom:22px}
.ws-eyebrow,.ws-task-number{font-size:12px;font-weight:650;letter-spacing:.06em;color:#0757c2;margin:0 0 10px}
.ws-intro h1{white-space:normal;overflow-wrap:anywhere;hyphens:auto;font-size:clamp(32px,5vw,54px);line-height:1.1;letter-spacing:-.045em;text-wrap:balance}
.ws-intro>p:last-child{font-size:19px;color:#4c5d74;margin:16px 0 0}
.ws-instructions{font-size:15px;color:#4c5d74;max-width:75ch;margin:12px 0}
.ws-tools{margin:24px 0;padding:20px 24px;border:1px solid #fff;border-radius:22px;background:#ffffffb8;box-shadow:0 10px 28px -25px #37598455}
.ws-print-actions{display:flex;gap:10px;flex-wrap:wrap}
.ws-print-actions .button{font-size:14px;min-height:44px}
.ws-print-hint,#ws-storage{font-size:12px;line-height:1.5;color:#53627a;margin:10px 0}
.ws-tools label{display:block;margin-top:18px;font-size:13px;color:#43536b}
.ws-tools progress{display:block;width:100%;height:10px;margin-top:8px;accent-color:#075fd4}
.ws-reference{margin:24px 0;border:1px solid #d3deec;border-radius:18px;background:#f0f4fa}
.ws-page summary{padding:14px 18px;cursor:pointer;color:#0757c2;font-size:14px;font-weight:600;min-height:48px}
.ws-page summary:focus-visible{outline:3px solid #075fd4;outline-offset:3px;border-radius:12px}
.ws-reference-body{padding:0 22px 20px}
.ws-reference dl{margin:0}.ws-reference dt{font-weight:650;margin:15px 0 5px}.ws-reference dd{margin:0;color:#43536b;overflow-wrap:anywhere}
.ws-diagram{max-width:480px;margin:24px auto 0}.ws-diagram svg{display:block;width:100%;height:auto}.ws-diagram figcaption{font-size:12px;text-align:center;color:#53627a}
.ws-sections{display:flex;flex-wrap:wrap;gap:8px 24px;margin:26px 0 30px}
.ws-sections a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;color:#0757c2;text-decoration:underline;text-underline-offset:4px}
.ws-section{margin:34px 0;scroll-margin-top:115px}
.ws-page h2{font-size:clamp(23px,3vw,30px);line-height:1.25;letter-spacing:-.6px;margin-bottom:20px}
.ws-task{padding:26px 28px;margin:0 0 18px;border-radius:24px;border:1px solid #fff;background:linear-gradient(130deg,#ffffffed,#f9faffd9);box-shadow:0 12px 32px -28px #37598466;scroll-margin-top:115px}
.ws-task h3{font-size:21px;line-height:1.3;letter-spacing:-.4px;margin:0 0 15px;overflow-wrap:anywhere}
.ws-prompt p{margin:10px 0;color:#243b57;overflow-wrap:anywhere}
.ws-notes{margin:20px 0 14px}.ws-notes label{display:block;margin:0 0 8px;font-size:12px;color:#53627a}
.ws-notes textarea{background:#f3f6fb;color:#243b57;border-color:#bbc9db;min-height:90px;line-height:1.6;font-size:16px;box-shadow:none}
.ws-solution{border-top:1px solid #dce3ee;margin-top:16px}
.ws-solution summary{padding-inline:0}
.ws-solution-body{padding:4px 0 12px;color:#43536b;overflow-wrap:anywhere}
.ws-solution ol{padding-left:24px;margin:0}.ws-solution li{padding-left:4px;margin:0 0 10px}
.ws-answer{background:#edf2f8;border:1px solid #cbd5e3;border-radius:12px;padding:14px 16px;margin:16px 0 0;color:#243b57}
.ws-done{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:8px;font-size:13px;color:#43536b;font-weight:500;cursor:pointer}
.ws-done input{width:20px;height:20px;min-height:0;flex:none;padding:0;margin:0;accent-color:#075fd4;box-shadow:none}
.ws-print-notes,.ws-writing-space{display:none}
.ws-related{margin-top:40px}.ws-related h2{font-size:22px}.ws-related a{display:block;padding-block:10px;min-height:44px;color:#0757c2;overflow-wrap:anywhere}
.ws-next{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px 28px;margin-top:30px;padding-top:22px;border-top:1px solid #d3deec}
.ws-next a{display:flex;align-items:center;min-height:44px;color:#0757c2;font-size:14px;max-width:45%;overflow-wrap:anywhere}
@media(max-width:640px){.ws-page{padding-top:20px}.ws-back{margin-bottom:14px}.ws-intro>p:last-child{font-size:17px}.ws-tools{padding:18px 16px}.ws-task{padding:22px 18px;border-radius:20px}.ws-task h3{font-size:19px}.ws-reference-body{padding-inline:16px}.ws-next a{max-width:100%}}
@media print{
  @page{margin:16mm}
  html,body{background:white!important;color:#172335!important}
  .ph-header,.ph-footer,.ws-back,.ws-tools,.ws-sections,.ws-related,.ws-next,.ws-notes,.ws-done,.ws-reference,noscript{display:none!important}
  .ph-landing>main{overflow:visible}.ws-page{width:100%;max-width:none;padding:0;font-size:11pt;line-height:1.5}
  .ws-intro h1{font-size:26pt}.ws-intro>p:last-child{font-size:12pt}.ws-instructions{font-size:10pt}
  .ws-page h2{font-size:17pt;break-after:avoid}.ws-task h3{font-size:13pt}
  .ws-task{padding:16px 0;margin:0;border:0;border-top:1px solid #b6c3d4;border-radius:0;background:white;box-shadow:none;break-inside:avoid}
  .ws-solution{display:none}.ws-print-notes{display:block;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:14px}
  .ws-print-notes:empty+.ws-writing-space{display:block}.ws-writing-space span{display:block;height:24px;border-bottom:1px solid #d0d7e2}
  [data-ws-print-mode="solutions"] .ws-solution{display:block}
  [data-ws-print-mode="solutions"] .ws-solution summary{display:none}
  [data-ws-print-mode="solutions"] .ws-writing-space{display:none}
  .ws-answer{background:white;box-shadow:none}.ws-task-number{font-size:9pt}
}
