.resource-main{width:min(920px,calc(100% - 40px));margin:48px auto 72px;line-height:1.7;overflow-wrap:anywhere}.resource-main h1{font-size:clamp(2rem,4vw,3.2rem);line-height:1.15}.resource-main h2{font-size:1.6rem;margin-top:36px;line-height:1.3}.resource-main h3{font-size:1.15rem}.resource-panel{padding:24px;border-radius:18px;background:#e2f0e9;color:#193f36;margin:28px 0}.resource-panel h2{margin-top:0}.resource-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}.resource-links a{padding:20px;border-radius:14px;background:#e5e5f4;color:#333660;font-weight:700;line-height:1.5;text-decoration:none;border:1px solid #bcbdd3}.resource-links a:hover{text-decoration:underline}.public-question{min-width:0;margin:28px 0;padding:22px;border:1px solid #b8cdc8;border-radius:16px;background:#f1f6f3;color:#183d36}.public-question legend{padding:0 8px;font-size:1.1rem;font-weight:750;line-height:1.5;max-width:100%}.public-question label{display:flex;align-items:flex-start;gap:12px;padding:12px;margin:8px 0;border:1px solid #b8cdc8;border-radius:9px;cursor:pointer;background:#fff}.public-question input{flex:0 0 auto;margin-top:6px;width:18px;height:18px;accent-color:#00677b}.public-question label:has(input:checked){outline:2px solid #00677b}.public-question details{margin-top:16px}.public-question summary{cursor:pointer;font-weight:700}.resource-main button{padding:14px 20px;border:0;border-radius:10px;background:#00677b;color:#fff;font:inherit;font-weight:700;cursor:pointer;margin:8px 10px 8px 0}.resource-main button:disabled{opacity:.6}.resource-main :focus-visible,.resource-links a:focus-visible{outline:3px solid #ba6b14;outline-offset:4px}.resource-main [hidden]{display:none!important}.question-result{font-weight:750}#mock-timer{font-size:1.5rem;font-weight:750;font-variant-numeric:tabular-nums}
:root[data-theme=dark] .resource-main{color:#e5eeeb}:root[data-theme=dark] .resource-panel,:root[data-theme=dark] .public-question{background:#203e37;color:#e5f1eb;border-color:#608879}:root[data-theme=dark] .public-question label{background:#16312c;border-color:#608879}:root[data-theme=dark] .resource-links a{background:#373b59;color:#eeeeff;border-color:#777caa}:root[data-theme=dark] .resource-main a:not(.button){color:#9fdfd0}
@media(max-width:650px){.resource-main{width:calc(100% - 32px);margin-top:30px}.resource-links{grid-template-columns:1fr}.public-question{padding:16px}.resource-panel{padding:20px}}

#free-study-resources{padding:28px;border:1px solid #b1d2ce;border-top:5px solid #388b81;border-radius:20px;background:#e0f0ec;color:#193e38}#free-study-resources h2{color:#193e38}#free-study-resources .resource-links{margin-bottom:0}#free-study-resources .resource-links a{background:#f5faf8;border-color:#a7c9c0;color:#24544b}:root[data-theme=dark] #free-study-resources{background:#203f39;color:#e4f2ed;border-color:#5b8a7e;border-top-color:#86c9b7}:root[data-theme=dark] #free-study-resources h2{color:#e4f2ed}:root[data-theme=dark] #free-study-resources .resource-links a{background:#2c5048;color:#e4f2ed;border-color:#6a988a}@media(max-width:650px){#free-study-resources{padding:20px}}

.mock-toolbar{position:sticky;top:8px;z-index:20;padding:14px 18px;background:#e2f0e9;color:#193f36;border:1px solid #98bdb1;border-radius:14px;box-shadow:0 4px 14px #0002;margin:24px 0}.mock-toolbar-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px}.mock-toolbar-row #mock-timer{margin:0 auto 0 0;font-size:1.2rem}.mock-toolbar-row button{margin:0;padding:8px 14px}.mock-toolbar details{margin-top:8px}.mock-toolbar summary{cursor:pointer;font-weight:650}.mock-jumps{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;margin-top:12px}.mock-jumps button{margin:0;padding:8px 4px;font-size:.95rem}.mock-jumps button[aria-current=step]{outline:3px solid #ba6b14;outline-offset:1px}:root[data-theme=dark] .mock-toolbar{background:#203e37;color:#e5f1eb;border-color:#608879}@media(max-width:650px){.mock-toolbar{top:4px;padding:12px}.mock-toolbar-row{gap:6px 10px}.mock-toolbar-row strong{flex-basis:100%}.mock-jumps{grid-template-columns:repeat(6,minmax(0,1fr))}}

.resource-links.resource-links-four{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:650px){.resource-links.resource-links-four{grid-template-columns:1fr}}
.resource-panel details{margin:16px 0}.resource-panel summary{cursor:pointer;font-weight:700}.resource-panel details p{padding-left:16px;border-left:3px solid #7fae9f}

/* Chapter introductions use distinct subject colours and responsive teaching figures. */
.study-history{background:#faf0da;color:#513e20}.study-society{background:#eee8f6;color:#403455}.study-government{background:#e2edf6;color:#234354}.study-figure{margin:24px 0}.study-figure img{display:block;width:100%;height:auto;border-radius:14px}.study-figure figcaption{margin-top:10px;font-size:1rem;line-height:1.5}.study-table-wrap{max-width:100%;overflow-x:auto}.study-table{width:100%;border-collapse:collapse;font-size:1rem;line-height:1.5}.study-table caption{text-align:left;font-weight:700;padding:12px 0}.study-table th,.study-table td{text-align:left;border-bottom:1px solid #b9adc9;padding:12px 10px;vertical-align:top}.study-table thead{background:#ffffff80}.resource-main .study-history h2,.resource-main .study-society h2,.resource-main .study-government h2{color:inherit}.resource-main .resource-links[aria-label="Study material contents"]{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-main .resource-links[aria-label="Study material contents"] a:last-child{grid-column:1/-1}:root[data-theme=dark] .study-history{background:#413925;color:#f6edd9}:root[data-theme=dark] .study-society{background:#393247;color:#eee6f5}:root[data-theme=dark] .study-government{background:#233d50;color:#e1edf6}:root[data-theme=dark] .study-table thead{background:#ffffff10}@media(max-width:650px){.resource-main .resource-links[aria-label="Study material contents"]{grid-template-columns:1fr}.study-table th,.study-table td{padding:10px 6px}.study-figure{margin:20px -4px}}

.study-figure img{max-width:440px;margin-inline:auto}.study-figure>a{display:block}
