/* Shared whole-paper library and homepage access box. */
.paper-home-box{margin:24px 0;padding:22px 24px;border:2px solid #175bda;border-radius:16px;background:#eaf3ff;color:#183253;max-width:760px}
.paper-home-box h2{margin:0 0 8px;font-size:25px!important;line-height:1.2}.paper-home-box p{margin:0 0 14px;font-size:16px!important;line-height:1.5}
.paper-links{display:flex;flex-wrap:wrap;gap:10px}.paper-links a,.paper-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #b2c9e8;border-radius:8px;background:white;color:#123d7c;text-decoration:none;font-weight:650;line-height:1.35}
.paper-links a:hover,.paper-button:hover{background:#e2edff;border-color:#175bda}.paper-button.primary{background:#175bda;color:white;border-color:#175bda}.paper-button.primary:hover{background:#1248ad}
.paper-home-box .paper-links{margin-top:12px}.paper-home-box a:focus-visible,.paper-library a:focus-visible{outline:3px solid #bf6500;outline-offset:4px}
body.paper-library{margin:0;background:#f3f8ff;color:#183253;font:17px/1.65 'Segoe UI',Arial,sans-serif}.paper-library *{box-sizing:border-box}.paper-library .paper-wrap{max-width:1120px;margin:auto;padding:24px}.paper-library header{background:white;border-bottom:1px solid #cbdcf2}.paper-library header .paper-wrap{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.paper-library .paper-brand{font-size:23px;font-weight:750;color:#153461;text-decoration:none}.paper-library h1,.paper-library h2,.paper-library h3{line-height:1.2;color:#153461}.paper-library h1{font-size:clamp(32px,5vw,48px);margin:12px 0}.paper-library h2{font-size:28px}.paper-library h3{font-size:22px;margin:8px 0}.paper-library .paper-kicker{font-size:13px;letter-spacing:1px;text-transform:uppercase;font-weight:700}.paper-library .paper-intro{max-width:780px}.paper-help{padding:18px 22px;border:1px solid #b2c9e8;background:#eaf3ff;border-radius:12px;margin:24px 0}.paper-help h2{font-size:21px;margin:0 0 8px}.paper-help p{margin:8px 0}.paper-course{background:white;border:1px solid #cbdcf2;border-radius:16px;padding:24px;margin:22px 0;scroll-margin-top:20px}.paper-course:target{border:2px solid #175bda}.paper-year{display:grid;grid-template-columns:130px 1fr;gap:18px;padding:20px 0;border-top:1px solid #dbe8fa;align-items:start}.paper-year strong{font-size:23px}.paper-year small{display:block;font-size:13px}.paper-year p{margin:10px 0 0;font-size:14px}.paper-library a{color:#154fbb}.paper-library .paper-button.primary{color:white}.paper-library footer{border-top:1px solid #cbdcf2;margin-top:32px}.paper-library .paper-skip{position:absolute;left:-9999px}.paper-library .paper-skip:focus{left:12px;top:12px;padding:12px;background:white;z-index:2}.paper-library .paper-group{scroll-margin-top:20px}.paper-library .paper-group>p{max-width:850px}
@media(max-width:600px){.paper-library .paper-wrap{padding:18px}.paper-course{padding:18px}.paper-year{grid-template-columns:1fr;gap:10px}.paper-home-box{padding:18px}.paper-links a,.paper-button{flex:1 1 auto}.paper-library header .paper-links{width:100%}}
@media print{.paper-library header,.paper-library footer,.paper-skip{display:none}.paper-course{break-inside:avoid}.paper-library{background:white}}
.paper-home-box h2 .paper-title-word{display:inline-block;white-space:nowrap}.paper-home-box h2 .paper-initial{color:#ae371c;font-size:1.2em;font-weight:800;line-height:1;vertical-align:baseline}

/* Extend the existing library link across the card; course links remain above it. */
.paper-home-box{position:relative;isolation:isolate;cursor:pointer}.paper-home-box>.paper-card-link{content:'';position:absolute;inset:0;z-index:1;border-radius:14px}.paper-home-box .paper-links a{position:relative;z-index:2}.paper-home-box:hover{border-color:#123d7c;background:#e2edff}.paper-home-box:focus-within{outline:3px solid #bf6500;outline-offset:4px}

/* Revision guidance and accessible expandable example cards. */
.revision-guide ol{padding-left:24px;margin:12px 0}.revision-guide li{margin:8px 0}.model-library{margin:38px 0}.example-card{background:#fff;border:1px solid #b2c9e8;border-radius:12px;margin:12px 0;scroll-margin-top:20px}.example-card summary{cursor:pointer;padding:18px 20px;font-size:20px;font-weight:700;color:#153461}.example-card summary:focus-visible{outline:3px solid #bf6500;outline-offset:3px}.example-card[open] summary{border-bottom:1px solid #dbe8fa}.example-content{padding:4px 20px 20px}.example-content p{max-width:850px}.publisher-examples{border-top:1px solid #dbe8fa;margin-top:22px;padding-top:8px}.publisher-examples h4{font-size:19px;margin:12px 0}.example-note{font-size:15px}.course-model-link{margin:10px 0 18px}.example-card:target{border:2px solid #175bda}@media print{.example-card{break-inside:avoid}}

/* Prominent resource choices at the top of the paper library. */
.paper-library .paper-intro{max-width:none}.paper-intro>p:not(.paper-kicker){max-width:780px}.paper-resource-boxes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}.paper-library .paper-resource-box{display:flex;flex-direction:column;justify-content:center;gap:8px;padding:22px;border:2px solid #175bda;border-radius:14px;background:#eaf3ff;color:#153461;text-decoration:none;min-height:132px}.paper-resource-box strong{font-size:22px;line-height:1.25}.paper-resource-box>span{font-size:15px;line-height:1.5}.paper-library .model-answer-box{background:#fff2df;border-color:#a55317;color:#65300b}.paper-resource-box:hover{box-shadow:0 3px 10px #18325320}.paper-library .model-answer-box:hover{background:#ffe7c5}@media(max-width:700px){.paper-resource-boxes{grid-template-columns:1fr}.paper-library .paper-resource-box{min-height:100px;padding:18px}}

/* Paired homepage access to complete papers and marked examples. */
.home-exam-resources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0;max-width:1120px}.home-exam-resources .paper-home-box{margin:0;max-width:none;min-width:0;display:flex;flex-direction:column}.home-exam-resources .paper-links{margin-top:auto;padding-top:12px}.home-exam-resources .home-model-box{background:#fff2df;border-color:#a55317;color:#65300b}.home-exam-resources .home-model-box h2{color:#65300b}.home-exam-resources .home-model-box:hover{background:#ffe7c5;border-color:#783b0d}@media(max-width:760px){.home-exam-resources{grid-template-columns:1fr}}

/* Focused resource navigation. */
.paper-library [hidden]{display:none!important}.resource-view-heading{margin:12px 0 24px}.resource-view-heading h1{font-size:clamp(28px,4vw,40px)}.paper-course-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0}.paper-course-choices>a{align-items:flex-start;flex-direction:column;gap:6px;padding:20px;min-height:100px}.paper-course-choices strong{font-size:22px}.paper-course-choices span{font-size:15px;font-weight:400}.selected-example>summary{display:none}.selected-example{border:none;background:transparent;margin:0}.selected-example>.example-content{padding:0}.model-question{background:#fff;border:1px solid #b2c9e8;border-radius:12px;padding:24px}.model-question h2{font-size:24px}.model-question .examiner-award{background:#eaf3ff;border-left:4px solid #175bda;padding:12px 16px}.question-chooser>p{max-width:850px}.question-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.question-choice-list a{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;padding:18px}.question-choice-list small{font-weight:400}.paper-group>nav[aria-label$="courses"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.paper-group>nav[aria-label$="courses"]>a{min-height:80px;font-size:22px}@media(max-width:600px){.paper-course-choices,.question-choice-list,.paper-group>nav[aria-label$="courses"]{grid-template-columns:1fr}.model-question{padding:18px}}

.paper-library .paper-resource-boxes{grid-template-columns:repeat(2,minmax(0,1fr))}.paper-library .selected-example:target{border:none}.question-chooser{padding:8px 0}.model-question .original-badge{font-size:13px;color:#52627a;margin:0 0 12px}.model-question .model-answer-body{max-width:780px}.model-answer-body p{margin:0 0 18px}.model-question .model-feedback{max-width:780px;padding:18px 22px;background:#eaf3ff;border-left:4px solid #175bda;border-radius:8px;margin-top:28px}.model-feedback h3{margin:0 0 10px;font-size:21px}.model-feedback ul{margin:0;padding-left:22px}.model-feedback li{margin:7px 0}.model-materials{border:1px solid #ccd9e9;border-radius:8px;padding:12px 16px;margin:18px 0;max-width:780px}.model-materials summary{font-weight:650;cursor:pointer}.model-materials h3{font-size:18px}.model-materials p{font-size:16px}.model-materials .material-provenance{font-size:14px;color:#43536b}.model-question .question-text{font-size:20px;font-weight:650;line-height:1.5;max-width:780px}.model-question .pearson-reference{margin-top:24px;font-size:15px}.resource-view-heading h1{outline:none}@media(max-width:700px){.paper-library .paper-resource-boxes{grid-template-columns:1fr}}

.answer-switch{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.answer-switch button{font:600 16px/1.4 Segoe UI,Arial,sans-serif;padding:12px 18px;border:1px solid #b2c9e8;border-radius:8px;background:#fff;color:#123d7c;cursor:pointer;min-height:48px}.answer-switch button[aria-pressed="true"]{background:#175bda;color:#fff;border-color:#175bda}.answer-switch button:focus-visible{outline:3px solid #bf6500;outline-offset:3px}.model-score{display:inline-block;font-size:16px;font-weight:500;color:#43536b;margin-left:10px}.mark-note,.question-provenance,.spag-estimate{font-size:14px;color:#43536b;max-width:780px}.answer-version .model-feedback{margin-bottom:22px}.model-feedback p{margin:0 0 10px}.answer-version h2{margin-bottom:18px}@media(max-width:600px){.answer-switch{display:grid;grid-template-columns:1fr 1fr}.answer-switch button{padding:12px 8px;font-size:14px}.model-score{display:block;margin:5px 0 0}}


/* Credit-bearing passages use labels and numbers as well as colour. */
.credit-evidence{background:#fff0ad;color:#342900}.credit-reasoning{background:#dcecff;color:#153454}.credit-judgement{background:#ede0ff;color:#40205c}.model-answer-body mark{padding:1px 2px;border-radius:3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.model-answer-body mark sup{font-weight:750;font-size:11px;padding-left:3px}.credit-key{display:flex;flex-wrap:wrap;gap:7px;font-size:13px;margin:14px 0 6px}.credit-key span{padding:3px 8px;border-radius:4px}.model-answer-body .credit-notes{margin:-6px 0 24px;padding-left:12px;border-left:2px solid #b2c9e8}.model-answer-body .credit-note{font-size:14px;line-height:1.5;margin:6px 0;color:#394b60}.credit-note strong{color:#183253}.answer-comparison{padding-bottom:10px;border-bottom:1px solid #c7d9f0}.credit-note:target{outline:2px solid #175bda}@media print{.model-answer-body mark{border-bottom:1px solid #444}.credit-notes{break-inside:avoid}}

.pearson-student{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:14px 16px;margin:10px 0 24px;border:1px solid #b2c9e8;border-radius:8px;background:#f5f9ff;max-width:850px}.pearson-student>strong{font-size:16px}.pearson-student>small{display:block;flex-basis:100%;font-size:13px;color:#43536b}

.pearson-correction{flex-basis:100%;margin:4px 0 0;padding:10px 12px;border-left:4px solid #93610b;background:#fff8e8;color:#483812;font-size:14px;line-height:1.6}

/* Direct Pearson feedback links and blue homepage initials. */
.student-answer-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch}.student-answer-actions .paper-button{white-space:normal}.home-exam-resources .paper-home-box h2 .paper-initial{color:#175bba;font-weight:900}

/* Equal resource cards with consistent titles, icons and touch targets. */
.home-exam-resources:has(.home-useful-box){grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;align-items:stretch}
.home-exam-resources:has(.home-useful-box)>.paper-home-box{box-sizing:border-box;min-height:280px;padding:22px;grid-column:auto}
.home-exam-resources:has(.home-useful-box)>.paper-home-box h2{display:flex;align-items:center;gap:12px;min-height:60px;margin:0 0 14px;font-size:24px!important;line-height:1.25}
.home-exam-resources .resource-card-icon{flex:0 0 36px;width:36px;height:36px;color:currentColor}
.home-exam-resources:has(.home-useful-box)>.paper-home-box p{font-size:16px!important;line-height:1.5;margin:0 0 18px}
.home-exam-resources:has(.home-useful-box)>.paper-home-box .paper-links{margin-top:auto;padding-top:12px;gap:8px}
.home-exam-resources:has(.home-useful-box)>.paper-home-box .paper-links a{box-sizing:border-box;min-height:44px;padding:10px 12px}
.home-exam-resources .home-useful-box{background:#f0f5f3;border-color:#6a887a;color:#29483b}
.home-exam-resources .home-useful-box h2{color:#29483b}
.home-exam-resources .home-useful-box:hover{background:#e5efe9;border-color:#375f4c}
@media(max-width:900px){.home-exam-resources:has(.home-useful-box){grid-template-columns:1fr}.home-exam-resources:has(.home-useful-box)>.paper-home-box{min-height:250px}}
.resource-bank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.resource-bank-grid .paper-course{margin:0;display:flex;flex-direction:column}.resource-bank-grid .paper-links{margin-top:auto}.resource-meta{font-size:14px;font-weight:600;color:#435a73}.resource-bank-section{margin:36px 0;scroll-margin-top:20px}.resource-bank-section h2{margin-bottom:18px}.resource-bank-grid p{margin:10px 0 18px}.resource-bank-nav{margin:24px 0}.resource-bank-grid a{overflow-wrap:anywhere}@media(max-width:680px){.resource-bank-grid{grid-template-columns:1fr}}

/* Keep the exit route available on long resource pages, including phone screens. */
.resource-return-bar{position:sticky;top:0;z-index:20;background:#f3f8ff;border-bottom:1px solid #b2c9e8;box-shadow:0 2px 6px #18325312}
.paper-library .resource-return-bar .paper-wrap{display:flex;align-items:center;gap:16px;padding-top:10px;padding-bottom:10px}
.resource-return-bar .paper-button{flex:none;min-height:44px;background:#fff;font-weight:700}
.resource-return-bar span{font-size:14px;line-height:1.4}
.paper-library h1,.paper-library .resource-bank-section{scroll-margin-top:120px}
@media(max-width:600px){.paper-library .resource-return-bar .paper-wrap{gap:10px}.resource-return-bar .paper-button{padding:10px}.resource-return-bar span{font-size:12px}}
@media print{.resource-return-bar{display:none}}
