/* Reuses Study's existing palette, typography and theme. */
.practice-hero{padding:48px 0 24px;max-width:920px}.practice-hero h1{font-size:clamp(2rem,4vw,3.4rem);line-height:1.13;letter-spacing:-.045em;margin:14px 0 20px}.practice-hero .lead{max-width:760px}.practice-tags{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.practice-tags span{border:1px solid var(--line);padding:7px 12px;border-radius:30px;font-size:.84rem;color:var(--muted);background:var(--surface)}
.practice-shell{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start;margin:20px 0 48px}.practice-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:clamp(20px,3vw,32px);min-width:0}.practice-card h2{font-size:1.4rem;margin:0 0 14px}.practice-card p{line-height:1.7}.practice-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.practice-actions .button{min-height:48px;white-space:normal;text-align:center}.practice-fine,.practice-meta{font-size:.86rem;color:var(--muted);line-height:1.65}.practice-progress-list{list-style:none;margin:0;padding:0}.practice-progress-list li{display:grid;gap:8px;padding:18px 0;border-bottom:1px solid var(--line)}.practice-progress-list li:first-child{padding-top:0}.practice-progress-list span,.practice-progress-list small{color:var(--muted);font-size:.82rem;line-height:1.6}
.practice-problem{font-size:clamp(1.25rem,3vw,1.8rem);font-weight:700;line-height:1.65;padding:20px;background:var(--soft);border-radius:14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.practice-card progress{width:100%;height:8px;accent-color:var(--primary)}.practice-card label{display:block;font-weight:650;line-height:1.6;margin:14px 0 10px}.practice-card input[type=text]{font:inherit;font-size:1.15rem;min-height:52px;max-width:100%;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--paper)}.practice-card input[aria-invalid=true]{border-color:var(--danger,#a52a32)}.practice-feedback{line-height:1.7;overflow-wrap:anywhere}.practice-feedback:not(:empty){border-left:4px solid var(--primary);padding:14px 16px;background:var(--soft);border-radius:6px}.practice-feedback[data-state=error]{border-left-color:#bf4a38}.practice-feedback[data-state=success]{border-left-color:var(--success,#176b4e)}.practice-completed{padding-left:24px;font-size:.9rem;line-height:1.9;color:var(--muted)}.practice-link-button{border:0;background:transparent;text-decoration:underline;text-underline-offset:4px;color:var(--ink);cursor:pointer;min-height:44px;padding:10px 4px;font:inherit;font-size:.85rem}.practice-replace{padding:16px;background:var(--soft);border:1px solid var(--line);border-radius:12px}.practice-card :focus-visible,.practice-content :focus-visible{outline:3px solid var(--primary);outline-offset:4px}.practice-card button:disabled{opacity:.6;cursor:default}
.practice-content{max-width:900px;margin:0 auto 48px}.practice-content h2{font-size:1.6rem;margin:32px 0 16px}.practice-content p,.practice-content li{line-height:1.85}.practice-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.practice-topic-card{display:flex;flex-direction:column;gap:12px;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);text-decoration:none;transition:border-color .18s,transform .18s}.practice-topic-card:hover{border-color:var(--primary);transform:translateY(-2px)}.practice-topic-card h2,.practice-topic-card h3{font-size:1.2rem;margin:0}.practice-topic-card p{font-size:.9rem;line-height:1.7;margin:0;color:var(--muted)}.practice-topic-card span{font-size:.85rem;font-weight:700;color:var(--primary);margin-top:auto}.practice-example{margin:20px 0;padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.practice-example h3{margin:0 0 12px;font-size:1.1rem}.practice-example ol{padding-left:24px}.practice-example summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:650}.practice-callout{margin:28px 0;padding:24px 28px;border:1px solid var(--line);border-radius:16px;background:var(--soft);display:flex;align-items:center;justify-content:space-between;gap:20px}.practice-callout p{margin:0;line-height:1.7}.practice-callout .button{flex-shrink:0}.practice-teacher input[type=url],.practice-teacher select{width:100%;max-width:100%;font:inherit;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink)}.practice-teacher input[type=checkbox]{width:20px;height:20px;vertical-align:middle;margin-right:8px}.practice-sheet-list>li{padding:14px 0 22px;border-bottom:1px solid var(--line)}.practice-sheet-list{padding-left:24px}.practice-sheet-problem{font-weight:700}.practice-ad-boundary{margin:48px 0 64px;border-top:1px solid var(--line);padding-top:32px}.practice-ad-boundary .ad-space.visible{min-height:280px}.practice-teacher label{display:block;margin:16px 0;font-weight:600}.practice-teacher [hidden],[hidden].practice-interactive{display:none!important}
@media(max-width:850px){.practice-shell{grid-template-columns:minmax(0,1fr)}.practice-topic-grid{grid-template-columns:1fr}.practice-callout{align-items:flex-start;flex-direction:column}.practice-hero{padding-top:30px}}
@media(max-width:420px){.practice-actions{flex-direction:column;align-items:stretch}.practice-actions .button{width:100%}.practice-problem{padding:16px}.practice-callout{padding:20px}.practice-hero h1{font-size:2rem}}
@media(prefers-reduced-motion:reduce){.practice-topic-card{transition:none}.practice-topic-card:hover{transform:none}}
@media print{body.practice-print-sheet .site-header,body.practice-print-sheet .site-footer,body.practice-print-sheet .language-hint,body.practice-print-sheet main>*{display:none!important}body.practice-print-sheet main .practice-content:has(#practice-teacher){display:block!important}body.practice-print-sheet #practice-teacher{display:block!important}body.practice-print-sheet #practice-teacher>h2,body.practice-print-sheet #practice-teacher>p,body.practice-print-sheet #practice-teacher>form,body.practice-print-sheet #practice-teacher>label,body.practice-print-sheet #practice-teacher>button{display:none!important}body.practice-print-sheet .practice-content:has(#practice-teacher)>:not(#practice-teacher){display:none!important}body.practice-print-sheet .practice-sheet-correction{display:none!important}body.practice-print-answers .practice-sheet-correction{display:block!important}body.practice-print-answers .practice-sheet-correction>p{display:block!important}body.practice-print-answers .practice-sheet-correction summary{display:none}body.practice-print-sheet .practice-sheet-list>li{break-inside:avoid}body.practice-print-sheet .practice-card{border:0;padding:0}}

.practice-sheet-source{overflow-wrap:anywhere;font-size:.85rem;line-height:1.5}@media print{.practice-sheet-source{font-size:9pt}}
