.study-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:28px 0 40px}
.page-hero .button-row .button-primary{background:#fffaf3;color:var(--forest-deep);border-color:#fffaf3}
.page-hero .button-row .button-secondary{background:transparent;color:#fffaf3;border-color:#fffaf3}
.page-hero .button-row .button:hover{background:#dfece6;color:var(--forest-deep)}
.study-card{background:var(--white);border:1px solid var(--line);border-top:4px solid var(--forest);border-radius:8px;padding:28px;box-shadow:var(--shadow-soft)}
.study-card h2{font-size:2rem}.study-card h3{font-size:1.45rem}.study-card h2 a,.study-card h3 a{color:var(--forest-deep);text-decoration:none}.study-card .eyebrow{font-size:.7rem;margin-bottom:14px}.study-learn-link{display:block;margin-top:16px}
.study-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:32px;align-items:start}
.practice-panel{background:#fffdf9;padding:32px;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);scroll-margin-top:100px}
#practice,#learn{scroll-margin-top:100px}
.practice-panel h2{font-size:2.1rem}.practice-panel .question-heading{font:600 1.35rem/1.5 var(--sans);letter-spacing:0;margin:16px 0 24px;outline:none}
.practice-panel label:not(.practice-option){display:block;font-weight:700;margin:18px 0 8px}.practice-panel select,.practice-panel input[type=text]{width:100%;max-width:440px;min-height:48px;padding:10px 12px;background:#fff;border:1px solid #827870;border-radius:5px}
.practice-panel .button-row{margin:24px 0 14px;gap:10px}.practice-panel button:disabled{opacity:.55;cursor:default}
.practice-status{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:.85rem;color:var(--ink-soft)}
.practice-panel progress{width:100%;height:8px;accent-color:var(--forest);margin:12px 0 22px}
.practice-panel fieldset{border:0;padding:0;margin:0}.practice-panel legend{font-size:.85rem;font-weight:700;margin-bottom:10px}
.practice-option{display:flex;align-items:flex-start;gap:12px;padding:15px;margin:10px 0;background:#f8f3ec;border:1px solid var(--line);border-radius:5px;cursor:pointer}
.practice-option:has(input:checked){border-color:var(--forest);background:var(--mint)}.practice-option input{margin-top:7px;accent-color:var(--forest);flex-shrink:0}
.practice-feedback{padding:0;min-height:30px;margin:20px 0 0;font-weight:600;overflow-wrap:anywhere}.practice-feedback.correct{padding:14px;background:#e3f0e8;border-left:4px solid #276344}.practice-feedback.incorrect{padding:14px;background:#fcf0e6;border-left:4px solid #a05232}
.practice-working{background:var(--mint);padding:22px;border-radius:6px;margin:20px 0}.practice-working h3{margin-bottom:16px}.practice-working p:last-child{margin-bottom:0}
.text-button{border:0;padding:6px 0;color:var(--forest);background:transparent;text-decoration:underline;text-underline-offset:.2em;font-size:.9rem}
.study-aside{padding:24px;background:var(--mint);border-radius:8px}.study-aside h2{font-size:1.75rem}.study-aside h3{margin-top:28px}.study-note{color:var(--ink-soft);font-size:.88rem;line-height:1.6}.study-aside .study-note{color:#494f48}
.practice-panel [data-graphic] svg{width:100%;background:#fff;border:1px solid var(--line);border-radius:5px;margin:12px 0}
.worked-example{padding:24px;border-left:4px solid var(--forest);background:#f6f0e6;margin:24px 0}.worked-example h3{font-size:1.16rem;line-height:1.5}.worked-example p:last-child{margin:0}.practice-result{font-size:1.5rem;color:var(--forest-deep)}
.chapter-study-links{display:flex;flex-wrap:wrap;gap:8px 18px;margin:8px 0 0 44px;font-size:.82rem}.chapter-study-links a{font-weight:600}
.book-study-entry{padding:24px;border:1px solid var(--line);border-left:4px solid var(--forest);background:var(--white);margin:0 0 28px}.book-study-entry h2{font-size:1.5rem}.book-study-entry p{margin-bottom:12px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--plum);outline-offset:3px}
@media(max-width:850px){.study-layout{grid-template-columns:1fr}.study-aside{margin-top:0}.study-grid{gap:18px}.study-card{padding:22px}}
@media(max-width:600px){.study-grid{grid-template-columns:1fr}.practice-panel{padding:22px 18px}.practice-panel h2{font-size:1.8rem}.practice-panel .question-heading{font-size:1.15rem}.practice-panel .button-row .button{width:100%;justify-content:center}.study-layout{gap:22px}.chapter-study-links{margin-left:0}.study-card h2{font-size:1.75rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.learning-tabs{display:flex;flex-wrap:wrap;gap:12px 24px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:28px}.learning-tabs a{font-weight:700}.learning-tabs [aria-current=page]{color:var(--plum)}
#tool-search{display:block;width:100%;max-width:520px;min-height:48px;margin:8px 0;padding:10px 14px;border:1px solid #827870;border-radius:5px;background:#fff}
.guide-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:48px;align-items:start}.guide-prose h2{font-size:1.9rem;line-height:1.2;margin:34px 0 16px}.guide-prose h2:first-child{margin-top:0}.guide-prose .worked-example h2{font-size:1.7rem}.guide-prose .worked-example h3{font-size:1.06rem}
.learning-check{padding:20px;border:1px solid var(--line);border-radius:6px;background:#fffaf3;margin:16px 0}.learning-check summary{cursor:pointer;font-weight:700;line-height:1.5}.learning-check p{margin:18px 0 0}
.practice-data-table{width:100%;border-collapse:collapse;margin:20px 0}.practice-data-table caption{text-align:left;font-size:.88rem;color:var(--ink-soft);margin-bottom:8px}.practice-data-table td,.practice-data-table th{padding:10px 14px;text-align:left;border-bottom:1px solid var(--line)}.practice-data-table th{background:var(--mint)}
#recall,#all-cards,#worked,#practise{scroll-margin-top:100px}.study-aside li{margin-bottom:12px}
@media(max-width:850px){.guide-layout{grid-template-columns:1fr;gap:28px}.guide-prose h2{font-size:1.7rem}}
.map-controls{display:grid;grid-template-columns:minmax(180px,260px) minmax(200px,1fr);gap:22px;max-width:880px}
.map-controls label{display:block;font-weight:700;margin-bottom:8px}
.map-controls select,.map-controls input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #b6a99e;border-radius:5px;background:#fffdfa;color:#302c2b;font:inherit}
.study-list{background:#dfece6;border:1px solid #b9cec4;border-radius:8px;padding:24px;margin:22px 0 34px}
.study-list h2{margin-top:0}.study-list li{margin:8px 0;overflow-wrap:anywhere}
.topic-resources{padding-left:20px}.topic-resources li{margin:9px 0}.topic-card h3{scroll-margin-top:100px}.topic-card{scroll-margin-top:100px}
@media(max-width:620px){.map-controls{grid-template-columns:1fr;gap:16px}.study-list{padding:20px}.topic-card .button{width:100%}}

.mixed-decks{border:1px solid var(--line);border-radius:6px;margin:22px 0;padding:18px;display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}.mixed-decks legend{font-weight:700;padding:0 8px}.mixed-decks label{display:flex;gap:10px;align-items:flex-start;line-height:1.45;padding:8px 0;cursor:pointer}.mixed-decks input{flex:0 0 auto;width:18px;height:18px;margin-top:3px;accent-color:var(--forest)}#mixed,[data-mixed-recall]{scroll-margin-top:100px}
@media(max-width:620px){.mixed-decks{grid-template-columns:1fr;padding:14px}.mixed-decks label{min-height:36px}}

.exam-case-layout{display:grid;grid-template-columns:minmax(300px,1fr) minmax(0,1.3fr);gap:32px;align-items:start}.exam-context{background:#fffdfa;border:1px solid var(--line);border-radius:8px;padding:24px;min-width:0}.exam-context h2{margin-top:0;font-size:1.7rem}.exam-table-scroll{overflow-x:auto}.exam-context .practice-data-table{font-size:.92rem}.exam-context td,.exam-context th{padding:9px 10px}.exam-graph{margin:22px 0}.exam-graph svg{width:100%;height:auto;background:white;border:1px solid var(--line);font:16px system-ui}.exam-graph figcaption{font-size:.85rem;line-height:1.5;margin-top:10px}.exam-response{padding:20px;background:var(--mint);border-radius:6px;margin:20px 0}.exam-response h3{font-size:1.2rem;margin:0 0 12px}.exam-response h3:not(:first-child){margin-top:22px}.exam-points{border:0;padding:0;margin:18px 0}.exam-points label{display:flex;align-items:flex-start;gap:12px;padding:10px 0;line-height:1.55;cursor:pointer}.exam-points input{width:18px;height:18px;flex:0 0 auto;margin-top:4px;accent-color:var(--forest)}#exam-draft{display:block;width:100%;box-sizing:border-box;min-height:170px;margin:8px 0;padding:14px;border:1px solid #827870;border-radius:5px;background:white;color:var(--ink);font:inherit;line-height:1.6;resize:vertical}.practice-panel label[for=exam-draft]{font-weight:700}.exam-course-form{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:18px}.exam-course-form label{font-weight:700}.exam-course-form select{padding:12px;border:1px solid #827870;border-radius:5px;background:#fffdfa;font:inherit}#exam-practice,[data-exam-practice],#all-questions,#worksheet{scroll-margin-top:100px}.exam-writing-space{height:120px;border-bottom:1px solid #aaa;margin-bottom:28px}.exam-print-question{break-inside:avoid}.exam-print-answers{border-top:2px solid var(--forest);padding-top:24px;margin-top:36px}.exam-print-answers article{break-inside:avoid}.exam-worksheet .exam-case-layout{display:block;max-width:900px}.exam-print-controls{background:var(--mint);padding:20px;margin-bottom:26px}
@media(max-width:900px){.exam-case-layout{grid-template-columns:1fr;gap:24px}}
@media(max-width:600px){.exam-context{padding:18px}.exam-response{padding:16px}.exam-context .practice-data-table{font-size:.85rem}.exam-context th,.exam-context td{padding:8px}.exam-course-form{align-items:stretch;flex-direction:column}.exam-course-form select{width:100%}}
@media print{.site-header,.site-footer,.skip-link,.exam-print-controls,.exam-worksheet .button{display:none!important}.exam-worksheet{background:#fff;color:#000;font:11pt/1.45 Georgia,serif}.exam-worksheet .site-shell,.exam-worksheet .prose-shell{width:auto;max-width:none;padding:0}.exam-worksheet .section,.exam-worksheet .page-hero{padding:12px 0;margin:0;background:white}.exam-worksheet h1{font-size:22pt}.exam-worksheet h2{font-size:16pt}.exam-worksheet h3{font-size:12pt}.exam-worksheet .lede{font-size:11pt}.exam-worksheet .exam-context{padding:12px;border:1px solid #aaa}.exam-worksheet .exam-context table{font-size:10pt}.exam-worksheet .exam-table-scroll{overflow:visible}.exam-worksheet .exam-graph{max-width:480px;break-inside:avoid}.exam-worksheet .exam-print-answers{break-before:page}.exam-worksheet a{color:#000;text-decoration:none}.exam-worksheet .exam-writing-space{height:90px}@page{margin:18mm}}
.practice-panel .exam-points label{font-size:1rem;text-transform:none;letter-spacing:normal;font-weight:500}.exam-data-return{font-size:.9rem;margin:8px 0 16px}#case-data{scroll-margin-top:100px}@media(min-width:901px){body:not(.exam-worksheet) .exam-context{position:sticky;top:100px;max-height:calc(100vh - 120px);overflow-y:auto}}
.exam-response{scroll-margin-top:100px}.exam-response:focus{outline:2px solid var(--forest);outline-offset:3px}
.practice-panel .exam-points label{display:flex;margin:0;font-weight:500}.practice-panel .exam-points label>span{display:block;flex:1;font:inherit;text-transform:none;letter-spacing:normal;margin:0}
#case-graph{scroll-margin-top:110px}
