/* Shared concise handbook shell; department-specific content stays in source pages. */
.dh-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;max-width:1320px;margin:24px auto;padding:0 28px;align-items:start}
.dh-shell .department-sidebar{padding:54px 16px 20px;background:white;border:1px solid #dedad0;border-top:3px solid #0b2a4d;border-radius:6px;position:sticky;top:24px;max-height:calc(100vh - 48px);overflow:auto}
.dh-shell .department-sidebar h2{font:1.65rem Georgia,serif;margin:0 0 20px}.dh-shell .eyebrow{font-size:.65rem;letter-spacing:.12em;font-weight:600;text-transform:uppercase;color:#765e31}
.dh-shell .site-main{min-width:0;width:100%;margin:0;padding:0}.dh-home{display:block;padding:12px 8px;font-size:.86rem}.dh-contents{border-block:1px solid #dedad0;margin:8px 0;padding:10px 0}.dh-contents summary{cursor:pointer;font-weight:600;font-size:.86rem;padding:12px 8px}.dh-contents a{display:grid;grid-template-columns:22px 1fr;gap:8px;padding:11px 8px;font-size:.78rem;line-height:1.6;text-decoration:none}.dh-contents a:hover{background:#f2eadb}.dh-contents a span{color:#98793f}
.dh-heading{padding:18px 0 24px;border-bottom:2px solid #0b2a4d;margin-bottom:24px}.dh-heading h1{font:clamp(2.3rem,4vw,3.4rem)/1.15 Georgia,serif;margin:12px 0 18px}.dh-heading p{line-height:1.75}.dh-badge{display:inline-block;padding:6px 10px;background:#f2eadb;color:#715c34;border-radius:4px;font-size:.8rem}.dh-intro{background:#edf2ef;padding:18px 22px;border-left:3px solid #66816e;line-height:1.75;margin-bottom:28px}
.dh-shell .chapter{margin:28px 0;background:white;border:1px solid #dedad0;border-radius:6px;overflow:hidden;scroll-margin-top:190px}.dh-shell .chapter-title{display:flex;gap:18px;align-items:center;padding:24px 28px;background:#e6f1ef;border-left:4px solid #257b7c}.dh-shell .chapter-title h2{font:1.8rem/1.25 Georgia,serif;margin:5px 0 0}.dh-shell .chapter-title p{margin:0}.dh-shell .chapter-number{font:2rem Georgia,serif;color:#257b7c}
.dh-content{padding:22px 28px;line-height:1.8}.dh-content p{margin:0 0 18px}.dh-policy{padding:13px 16px;border-left:3px solid #66816e;background:#edf2ef;font-size:.86rem}.dh-status{font-size:.8rem;color:#735d30}.dh-prompt{border:1px solid #ded6c5;border-radius:5px;margin:20px 0}.dh-prompt summary{padding:13px 16px;cursor:pointer;background:#f2eadb;font-weight:600}.dh-prompt p{padding:0 16px;margin:16px 0}.dh-example{border-top:1px solid #dedad0;padding-top:16px;font-size:.9rem}.dh-shell .reader-table{overflow-x:auto;margin:20px 0}.dh-shell table{width:100%;min-width:520px;border-collapse:collapse;font-size:.85rem}.dh-shell th,.dh-shell td{padding:12px;text-align:left;vertical-align:top;border:1px solid #dedad0}.dh-shell th{background:#edf2f6}.dh-shell footer{font-size:.8rem;color:#68778a;padding:20px 0;border-top:1px solid #dedad0}
@media(max-width:760px){.dh-shell{display:block;padding:0 16px}.dh-shell .department-sidebar{position:static;max-height:none}.dh-content{padding:18px}.dh-shell .chapter-title{padding:20px 18px;gap:12px}.dh-shell .chapter-title h2{font-size:1.45rem}}
@media print{.dh-shell{display:block;max-width:none;padding:0}.dh-shell .department-sidebar{display:none}.dh-shell .chapter{break-inside:avoid;scroll-margin-top:0}.dh-prompt>p{display:block}.dh-heading{padding-top:0}}
/* Keep this handbook's rail controls inside the rail, below the shared header. */
.portal-sidebar-page .department-shell.dh-shell{grid-template-columns:220px minmax(0,1fr)}
.portal-sidebar-page.portal-nav-collapsed .department-shell.dh-shell{grid-template-columns:56px minmax(0,1fr)}
.portal-sidebar-page .dh-shell .portal-sidebar-toggle{position:absolute;top:12px;right:12px;left:auto}
@media(max-width:1100px){
 .portal-sidebar-page .department-shell.dh-shell,.portal-sidebar-page.portal-nav-collapsed .department-shell.dh-shell{display:block;width:calc(100% - 32px);padding:6px 0 0}
 .portal-sidebar-page .dh-shell .department-sidebar{position:relative;inset:auto;width:100%;max-width:none;height:auto;max-height:none;padding:58px 16px 18px;margin-bottom:24px;z-index:20}
 .portal-sidebar-page.portal-nav-collapsed .dh-shell .department-sidebar{min-height:50px;padding:0}
 .portal-sidebar-page .dh-shell .portal-sidebar-toggle{top:0;right:0;left:0;width:100%;height:48px;display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border:0;background:#fff;color:#0b2a4d}
 .portal-sidebar-page .dh-shell .portal-sidebar-toggle::before{content:'Department menu';font:600 .85rem/1.5 'Segoe UI',Arial,sans-serif}
}
/* Use the Maths model's quiet section colours without inheriting its content padding. */
.dh-shell #overview{--section-color:#257b7c;--section-tint:#e6f1ef}.dh-shell #curriculum{--section-color:#356399;--section-tint:#eaf0fa}.dh-shell #resources{--section-color:#986224;--section-tint:#faf0df}.dh-shell #language{--section-color:#257b7c;--section-tint:#e6f1ef}.dh-shell #student-work{--section-color:#257b7c;--section-tint:#e6f1ef}.dh-shell #assessment{--section-color:#77568e;--section-tint:#f0eaf6}.dh-shell #quality-assurance{--section-color:#257b7c;--section-tint:#e6f1ef}.dh-shell #people{--section-color:#427451;--section-tint:#edf3e9}
.portal-f-maths .dh-shell .chapter{padding:0}.portal-f-maths .dh-shell .chapter-title{margin:0;border-left-color:var(--section-color);background:var(--section-tint)}.dh-shell .chapter-number,.dh-shell .chapter-title h2{color:var(--section-color)}
