/* Scoped to the existing foundation lesson layout. */
.pw-foundation-layout .fd-panel,.pw-foundation-layout .fd-outcomes{margin:24px 0;padding:22px;border:1px solid #dfd8ec;border-radius:16px;background:#faf8ff;color:#302547}
.pw-foundation-layout .fd-outcomes{background:#f0f9f5;border-color:#cce5db}
.pw-foundation-layout .fd-eyebrow{font-size:11px;font-weight:750;letter-spacing:.09em;color:#176858;margin-bottom:10px}
.pw-foundation-layout .fd-outcomes ul{padding-left:22px;margin:12px 0;line-height:1.9}
.pw-foundation-layout .fd-outcomes>p{border-top:1px solid #cce5db;padding-top:12px;margin-bottom:0}
.pw-foundation-layout .fd-panel h3,.pw-foundation-layout .fd-notes h3{font-size:21px;margin:0 0 12px}
.pw-foundation-layout .fd-panel h4,.pw-foundation-layout .fd-note h4{font-size:17px;margin:16px 0 10px}
.pw-foundation-layout .fd-tabs,.pw-foundation-layout .fd-sounds,.pw-foundation-layout .fd-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.pw-foundation-layout .fd-sounds{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:8px}
.pw-foundation-layout .fd-tabs button,.pw-foundation-layout .fd-sounds button{background:#fff;color:#4c386f;border:1px solid #d9cfe8;min-height:44px;padding:10px 13px}
.pw-foundation-layout .fd-sounds button{font-size:19px}
.pw-foundation-layout [data-fd][aria-pressed=true]{background:#5e45a3;color:#fff;border-color:#5e45a3;box-shadow:0 0 0 2px #e7dcf8}
.pw-foundation-layout .fd-sound-detail{display:grid;grid-template-columns:minmax(125px,1fr) minmax(0,2fr);gap:24px;padding:20px;margin-top:20px;border-radius:13px;background:white;border:1px solid #e3dced}
.pw-foundation-layout .fd-sound-detail>div:first-child{text-align:center}
.pw-foundation-layout .fd-large{display:block;font-size:42px;font-weight:500;line-height:1.6;color:#2c2143;margin:0}
.pw-foundation-layout .fd-tone{width:150px;max-width:100%;height:95px;color:#12685b}
.pw-foundation-layout .fd-formula{padding:12px;background:#f0f8f5;border-radius:10px;color:#155d50}
.pw-foundation-layout .fd-note{padding:20px 0;border-bottom:1px solid #e6dfef;line-height:1.8}
.pw-foundation-layout .fd-note h4{margin-top:0}
.pw-foundation-layout .fd-example-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px}
.pw-foundation-layout .fd-triple{display:flex;flex-direction:column;align-items:flex-start;gap:7px;background:#fff;border:1px solid #e8e0f1;border-radius:12px;padding:16px;line-height:1.65;min-width:0}
.pw-foundation-layout .fd-triple>strong{font-size:25px;font-weight:500}.pw-foundation-layout .fd-triple>span:first-of-type{color:#63489c}
.pw-foundation-layout .fd-caption,.pw-foundation-layout .fd-license,.pw-foundation-layout .fd-voice-note{font-size:13px;color:#5f566c;line-height:1.7}
.pw-foundation-layout .fd-voice-note{padding:12px 14px;background:#f5f3f8;border-radius:10px}
.pw-foundation-layout .fd-task{display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;padding:18px 0;border-bottom:1px solid #e2d9ee}
.pw-foundation-layout .fd-task h4{margin-top:0;line-height:1.6}.pw-foundation-layout .fd-task-number{width:28px;height:28px;border-radius:50%;background:#e9dff8;text-align:center;color:#533c82;font-weight:700;line-height:28px}
.pw-foundation-layout .fd-task textarea{display:block;box-sizing:border-box;width:100%;min-height:80px;resize:vertical;border:1px solid #cfc3df;border-radius:9px;padding:12px;font:inherit;margin:7px 0 10px;background:#fff;color:#2b2140}
.pw-foundation-layout .fd-task label{font-size:13px;color:#62556f}.pw-foundation-layout .fd-panel summary,.pw-foundation-layout .fd-dialogue summary{cursor:pointer;min-height:44px;padding:12px 0;line-height:1.5}
.pw-foundation-layout .fd-select{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0;font-size:14px}
.pw-foundation-layout .fd-select select{max-width:100%;min-height:44px;padding:10px 12px;background:#fff;border:1px solid #cfc3df;border-radius:9px;color:#332747;font:inherit}
.pw-foundation-layout .fd-writing-grid{display:grid;grid-template-columns:minmax(160px,270px) minmax(0,1fr);gap:24px;margin:18px 0}
.pw-foundation-layout .fd-stroke-canvas{display:block;width:100%;aspect-ratio:1;border:1px solid #d7cde5;border-radius:12px;background:#fff}
.pw-foundation-layout #fd-stroke-count{text-align:center;font-size:14px;min-height:24px}
.pw-foundation-layout .fd-stroke-sequence{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:12px}
.pw-foundation-layout .fd-stroke-sequence figure{margin:0;text-align:center}.pw-foundation-layout .fd-stroke-small{display:block;width:100%;background:#fff;border:1px solid #e2d9ee;border-radius:8px}.pw-foundation-layout .fd-stroke-sequence figcaption{font-size:12px;margin:6px 0}
.pw-foundation-layout .fd-dialogue{display:block;margin-top:16px}.pw-foundation-layout .fd-dialogue>strong{display:block;margin-bottom:10px;color:#176858}.pw-foundation-layout .fd-prompt{padding:12px;background:#eff8f4;border-radius:8px}
.pw-foundation-layout .fd-panel button,.pw-foundation-layout .fd-triple button{min-height:44px;white-space:normal;line-height:1.4}
.pw-foundation-layout [data-fd]:focus-visible,.pw-foundation-layout .fd-panel select:focus-visible,.pw-foundation-layout .fd-panel summary:focus-visible{outline:3px solid #176858;outline-offset:3px}
@keyframes fd-write{to{stroke-dashoffset:0}}
@media(max-width:600px){.pw-foundation-layout .fd-panel,.pw-foundation-layout .fd-outcomes{padding:15px;margin:18px 0}.pw-foundation-layout .fd-sound-detail,.pw-foundation-layout .fd-writing-grid{grid-template-columns:minmax(0,1fr);gap:14px}.pw-foundation-layout .fd-stroke-canvas{max-width:260px;margin:auto}.pw-foundation-layout .fd-actions>*{flex:1 1 110px}.pw-foundation-layout .fd-task{grid-template-columns:minmax(0,1fr);gap:5px}.pw-foundation-layout .fd-sounds{grid-template-columns:repeat(auto-fit,minmax(52px,1fr))}.pw-foundation-layout .fd-tabs button{font-size:13px}.pw-foundation-layout .fd-triple{padding:12px}}
@media(prefers-reduced-motion:reduce){.pw-foundation-layout .fd-active-stroke{animation:none!important;stroke-dashoffset:0}}
