/* One card per exam section. Number ranges carry the exam sequence. */
.app-layout .exam-library{font:400 15px/1.6 Manrope,sans-serif;color:var(--cabinet-ink);min-width:0}
.exam-library :is(h1,h2,h3,p){margin:0;font-family:inherit;font-style:normal;text-transform:none;letter-spacing:normal}
.exam-library :is(a,button){font-family:inherit;text-underline-offset:4px}
.exam-library .icon,.app-layout .exam-handouts .icon{width:20px;height:20px;flex:none}
.exam-heading{margin-bottom:24px}
.exam-library .exam-heading h1{font-size:27px;font-weight:800;line-height:1.3;letter-spacing:-.025em;color:var(--cabinet-ink)}
.exam-heading h1>span{font-weight:600;color:var(--cabinet-muted);margin-left:9px;white-space:nowrap}
.exam-heading p{font-size:15px;line-height:1.65;color:var(--cabinet-muted);max-width:68ch;margin-top:8px}
.exam-library-top{padding:24px;background:var(--cabinet-surface);border-radius:16px;margin-bottom:26px}
.exam-library-top .exam-heading{margin-bottom:19px}
.exam-library-heading-row{display:flex;align-items:center;justify-content:space-between;gap:20px}
.exam-bank-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--cabinet-accent);font-size:13px;font-weight:750;text-decoration:none;white-space:nowrap}
.exam-bank-link:hover{text-decoration:underline}
.exam-bank-link>.icon{width:17px;height:17px}
.exam-filters{display:flex;flex-wrap:wrap;gap:7px}
.exam-filters a{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border-radius:24px;color:var(--cabinet-ink);background:var(--cabinet-canvas);font-size:13px;font-weight:650;text-decoration:none;line-height:1.45}
.exam-filters a:hover{background:var(--cabinet-hover)}
.exam-filters a[aria-current="page"]{color:#fff;background:var(--cabinet-accent)}
.exam-section-group+.exam-section-group{margin-top:30px}
.exam-group-heading{display:flex;gap:14px;align-items:baseline;margin-bottom:13px}
.exam-library .exam-group-heading h2{font-size:18px;font-weight:750;line-height:1.4;letter-spacing:-.015em}
.exam-group-heading>span{font-size:13px;color:var(--cabinet-muted)}
.exam-section-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.exam-section-card{display:flex;flex-direction:column;min-width:0;min-height:227px;padding:20px;background:var(--cabinet-surface);color:var(--cabinet-ink);border-radius:14px;text-decoration:none;transition:background-color 150ms ease}
.exam-section-card:hover{background:#fffaf1;outline:1px solid var(--cabinet-control-line);outline-offset:-1px}
.exam-section-card:active{background:var(--cabinet-accent-soft)}
.exam-card-range{display:flex;gap:9px;align-items:center;color:var(--cabinet-muted);font-size:13px;line-height:1.4;margin-bottom:13px}
.exam-card-range>.icon{color:var(--cabinet-accent);width:21px;height:21px}
.exam-library .exam-section-card h2{font-size:19px;font-weight:750;line-height:1.35;letter-spacing:-.02em;overflow-wrap:anywhere}
.exam-section-card>p{font-size:14px;line-height:1.6;color:var(--cabinet-muted);margin-top:8px}
.exam-card-bottom{margin-top:auto;padding-top:20px}
.exam-card-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--cabinet-muted);line-height:1.5}
.exam-card-practice{color:var(--cabinet-ochre);font-weight:700}
.exam-card-practice::before{content:'—';margin-right:8px;color:var(--cabinet-muted)}
.exam-card-open{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:11px;font-size:13px;font-weight:750;color:var(--cabinet-accent)}
.exam-card-open>.icon{width:17px;height:17px}
.exam-progress{margin:0 0 12px}
.exam-progress>div{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px;font-size:12px;line-height:1.45;color:var(--cabinet-muted)}
.exam-progress strong{color:var(--cabinet-ink);font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap}
.exam-progress progress{display:block;width:100%;height:6px;border:0;border-radius:3px;overflow:hidden;background:var(--cabinet-line);accent-color:var(--cabinet-green)}
.exam-progress progress::-webkit-progress-bar{background:var(--cabinet-line);border-radius:3px}
.exam-progress progress::-webkit-progress-value{background:var(--cabinet-green);border-radius:3px}
.exam-progress progress::-moz-progress-bar{background:var(--cabinet-green);border-radius:3px}
.exam-back{display:inline-flex;align-items:center;gap:8px;min-height:40px;margin:0 0 16px;color:var(--cabinet-accent);font-size:14px;font-weight:650;text-decoration:none}
.exam-back>.icon{width:17px;height:17px;transform:rotate(180deg)}
.exam-back:hover{text-decoration:underline}
.exam-section-detail{max-width:1040px}
.exam-lesson-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 22px}
.exam-lesson-actions>a,.exam-lesson-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;min-height:44px;border:1px solid var(--cabinet-line);border-radius:8px;background:#fff;color:var(--cabinet-accent);font-size:14px;font-weight:700;line-height:1.45;text-decoration:none;cursor:pointer}
.exam-lesson-actions>a:hover{background:var(--cabinet-hover)}
.exam-lesson-actions>button.exam-action-primary{background:var(--cabinet-accent);color:#fff;border-color:var(--cabinet-accent)}
.exam-lesson-actions>button.exam-action-primary:hover{background:var(--cabinet-accent-hover)}
.exam-lesson-actions>button>span{margin-left:3px;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}
.exam-audio{background:#fff;border-radius:14px;padding:24px 26px;margin-bottom:20px}
.exam-audio-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}
.exam-audio-icon{display:grid;place-items:center;width:38px;height:42px;flex:none;color:var(--cabinet-accent);background:var(--cabinet-accent-soft);border-radius:8px}
.exam-library .exam-audio h2{font:750 19px/1.4 Manrope,sans-serif;letter-spacing:-.015em;margin:0 0 4px}
.exam-audio-heading a{display:inline-flex;align-items:center;gap:7px;min-height:30px;color:var(--cabinet-accent);font-size:12px;font-weight:600;text-decoration:underline}
.exam-audio-heading a>.icon{width:14px;height:14px;transform:rotate(-35deg)}
.exam-audio-controls{display:flex;align-items:flex-end;gap:20px}
.exam-audio audio{display:block;width:100%;min-width:0;flex:1;height:54px;accent-color:var(--cabinet-accent);color-scheme:light}
.exam-audio-speed{display:grid;gap:6px;flex:0 0 150px;font-size:12px;font-weight:650;color:var(--cabinet-muted)}
.app-layout .exam-audio-speed select{font:600 13px/1.5 Manrope,sans-serif;min-height:40px;width:100%;padding:9px 10px;color:var(--cabinet-ink);border:1px solid var(--cabinet-control-line);border-radius:8px;background:#fff;cursor:pointer}
.exam-audio>p{font-size:12px;color:var(--cabinet-muted);line-height:1.6;margin-top:14px;max-width:72ch}
.app-layout .exam-handouts{display:grid;gap:20px;min-width:0;font:400 15px/1.65 Manrope,sans-serif;color:var(--cabinet-ink)}
.app-layout .exam-handout{background:#fff;border-radius:14px;overflow:hidden}
.app-layout .exam-handout-reading{padding:24px 26px}
.app-layout .exam-handout h2{font:750 20px/1.4 Manrope,sans-serif;letter-spacing:-.015em;color:var(--cabinet-ink);margin:0 0 10px;text-transform:none}
.app-layout .exam-handout-summary{font-size:15px;line-height:1.7;color:var(--cabinet-muted);max-width:70ch;margin:0}
.app-layout .exam-highlights{display:grid;gap:10px;padding-left:19px;margin:17px 0 0;max-width:72ch;font-size:15px;line-height:1.7}
.app-layout .exam-highlights li{padding-left:4px}
.app-layout .exam-highlights li::marker{color:var(--cabinet-ochre)}
.app-layout .exam-pdf-row{display:flex;align-items:center;gap:14px;padding:20px 24px;min-width:0;color:var(--cabinet-ink);font:400 14px/1.5 Manrope,sans-serif}
.app-layout .exam-handout>.exam-pdf-row{border-top:1px solid var(--cabinet-line)}
.exam-pdf-icon{display:grid;place-items:center;width:38px;height:42px;flex:none;color:var(--cabinet-ochre);background:var(--cabinet-accent-soft);border-radius:8px}
.exam-pdf-copy{flex:1;min-width:0}
.exam-pdf-copy strong{display:block;font-size:14px;line-height:1.55;font-weight:650;overflow-wrap:anywhere}
.exam-pdf-copy>span{display:block;font-size:12px;color:var(--cabinet-muted);line-height:1.5;margin-top:5px}
.exam-pdf-actions{display:flex;align-items:center;gap:14px;flex:none}
.exam-pdf-actions a{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:44px;color:var(--cabinet-accent);font-size:13px;font-weight:750;text-decoration:none;white-space:nowrap}
.exam-pdf-actions a:hover{text-decoration:underline;text-underline-offset:4px}
.exam-pdf-actions a>.icon{width:17px;height:17px}
.exam-pdf-actions a.exam-download{width:44px;min-height:44px;border:1px solid var(--cabinet-line);border-radius:8px}
.exam-pdf-actions a.exam-download>.icon{width:19px;height:19px}
.exam-pdf-actions a.exam-download:hover{background:var(--cabinet-hover);border-color:var(--cabinet-control-line)}
.exam-section-note{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.6;color:var(--cabinet-muted);margin:18px 4px 0!important;max-width:70ch}
.exam-section-note>.icon{margin-top:2px;width:18px;height:18px}
.exam-section-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:28px;padding-top:14px;border-top:1px solid var(--cabinet-line)}
.exam-section-footer a,.exam-material-group>header>a{display:inline-flex;gap:8px;align-items:center;min-height:44px;color:var(--cabinet-accent);text-decoration:none;font-size:14px;font-weight:700;line-height:1.5}
.exam-section-footer a:hover,.exam-material-group>header>a:hover{text-decoration:underline}
.exam-section-footer a>.icon,.exam-material-group>header>a>.icon{width:17px;height:17px}
.exam-material-group+.exam-material-group{margin-top:28px}
.exam-material-group>header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:9px}
.exam-library .exam-material-group h2{font-size:19px;line-height:1.5;font-weight:750;letter-spacing:-.015em}
.exam-material-group h2>span{font-size:13px;font-weight:500;display:inline-block;color:var(--cabinet-muted);margin-left:10px;letter-spacing:0}
.exam-material-files{background:#fff;border:1px solid var(--cabinet-line);border-radius:12px;overflow:hidden}
.exam-material-files .exam-pdf-row+.exam-pdf-row{border-top:1px solid var(--cabinet-line)}
/* Embedded copies inherit the reader surface instead of nesting a second card. */
.app-layout .study-reader .exam-handouts{gap:0}
.app-layout .study-reader .exam-handout{border-radius:0}
.app-layout .study-reader .exam-handout-reading{padding:24px}
.app-layout .study-reader .exam-pdf-row{flex-wrap:wrap;padding:18px 24px}
.app-layout .study-reader .exam-pdf-copy{flex-basis:calc(100% - 56px)}
.app-layout .study-reader .exam-pdf-actions{margin-left:52px}
@media(max-width:680px){.exam-audio{padding:21px}.exam-audio-controls{flex-direction:column;align-items:stretch;gap:14px}.exam-audio audio{flex:auto}.exam-audio-speed{display:flex;align-items:center;gap:12px;flex:auto}.app-layout .exam-audio-speed select{width:auto;min-width:150px;font-size:16px}.exam-library .exam-audio h2{font-size:18px}}
@media(max-width:1180px){.exam-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-section-card{min-height:214px}.exam-pdf-actions{gap:10px}.app-layout .exam-pdf-row{padding:18px 20px}}
@media(max-width:760px){.exam-library-top{padding:20px;margin-bottom:23px}.exam-library .exam-heading h1{font-size:25px}.exam-filters{gap:6px}.exam-filters a{min-height:40px;padding:8px 12px}.exam-group-heading{gap:9px;flex-wrap:wrap}.exam-group-heading>span{font-size:12px}.exam-section-card{padding:19px}.app-layout .exam-handout-reading{padding:21px}.app-layout .exam-handout h2{font-size:19px}.exam-material-group h2>span{display:block;margin:3px 0 0}.exam-material-group>header>a{font-size:13px;white-space:nowrap}.exam-lesson-actions>a,.exam-lesson-actions>button{font-size:13px}}
@media(max-width:520px){.exam-library-heading-row{display:block}.exam-library-heading-row .exam-bank-link{margin:-8px 0 14px}.exam-section-grid{grid-template-columns:1fr;gap:12px}.exam-section-card{min-height:0;padding:20px}.exam-library .exam-section-card h2{font-size:19px}.exam-card-range{margin-bottom:10px}.exam-card-bottom{padding-top:16px}.exam-library-top{padding:18px}.exam-filters a{font-size:12px;padding-inline:11px}.exam-heading h1>span{font-size:22px}.app-layout .exam-pdf-row{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;padding:18px}.exam-pdf-icon{width:36px;height:40px}.exam-pdf-actions{grid-column:2;justify-content:space-between;margin-top:0}.exam-pdf-copy strong{font-size:13px}.exam-pdf-copy>span{font-size:12px}.app-layout .exam-handout-reading{padding:20px}.app-layout .exam-handout-summary,.app-layout .exam-highlights{font-size:15px}.exam-section-footer{gap:6px}.exam-section-footer a{width:100%;justify-content:space-between}.exam-material-group>header{gap:10px}.app-layout .study-reader .exam-pdf-row{display:grid;padding:18px}.app-layout .study-reader .exam-pdf-actions{margin-left:0}.exam-lesson-actions>a,.exam-lesson-actions>button{flex:1}.exam-lesson-actions>button.exam-action-primary{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.exam-section-card{transition:none}}
