/* Dropdown folders ("Question Banks", "Mock Papers", "ICE OSCE", "Cases"...): one component shared by the home page and the OSCE pages.
   Markup: <section class="bsec" id="x"><h2 class="sec"><button class="fold" aria-expanded="false" aria-controls="x-body"><span>Title</span><svg class="chev">...</svg></button></h2><div class="bbody" id="x-body" hidden>...</div></section>
   Behaviour: /assets/folds.js. */
.bsec{border-top:.5px solid var(--rule);padding:36px 0;margin:0}.bsec.open{padding-bottom:60px}
@media (max-width:860px){.bsec h2.sec{font-size:52px!important}}
/* Dropdown folders */
.bsec h2.sec{font-family:var(--f-display)!important;font-weight:400!important;font-size:60px!important;line-height:.9;letter-spacing:-.03em;margin:0;color:#000}
.fold{all:unset;box-sizing:border-box;width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;font:inherit;color:inherit}
.fold:focus-visible{outline:2px solid #000;outline-offset:6px;border-radius:8px}
/* The arrow circle never changes colour: same fill, arrow and border at rest and on hover. Only the rotation animates. */
.fold .chev{flex:0 0 auto;width:44px;height:44px;padding:8px;border:1px solid var(--rule-2);border-radius:50%;background:#fff;color:#000;transition:transform .35s ease}
.bsec.open .fold .chev{transform:rotate(180deg)}
.bbody{padding-top:44px}
.bbody[hidden]{display:none}
.bbody.fade-in{animation:foldIn .4s ease both}
.bbody.fade-out{animation:foldOut .3s ease both}
@keyframes foldIn{from{opacity:0}to{opacity:1}}
@keyframes foldOut{from{opacity:1}to{opacity:0}}
@media (prefers-reduced-motion:reduce){.bbody.fade-in,.bbody.fade-out{animation:none}.fold .chev{transition:none}}
@media (max-width:860px){.fold .chev{width:38px;height:38px}.bsec{padding:24px 0}.bbody{padding-top:28px}}
.bsec{border:1px solid var(--rule-2);border-radius:10px;padding:22px 28px;margin:0 0 16px;background:#fff}
.bsec.open{padding:22px 28px 36px}
@media (max-width:860px){.bsec,.bsec.open{padding:16px 16px 20px}.bsec:not(.open){padding-bottom:16px}}
.bsec h2.sec{line-height:1.05!important}
.fold span{display:block}
.fold span{transform:none}
.bsec{transition:border-color .2s,background .2s}
/* v5: folders - text centred vertically, black fill with white text on hover (no red) */
.bsec{transition:background .2s,border-color .2s}
.bsec h2.sec{margin:0;display:flex;align-items:center;line-height:1.15!important;transition:background .2s,color .2s}
.fold{min-height:44px;align-items:center}
.fold span{display:flex;align-items:center;line-height:1.15;margin:0;padding:0;transform:none}
.bsec:not(.open):has(.fold:hover){background:#000;border-color:#000}
.bsec:not(.open):has(.fold:hover) h2.sec{color:#fff}
.bsec.open h2.sec{margin:-22px -28px 0;padding:22px 28px;border-radius:10px 10px 0 0}
.bsec.open:has(.fold:hover) h2.sec{background:#000;color:#fff}
@media (max-width:860px){.bsec.open h2.sec{margin:-16px -16px 0;padding:16px}}
.bsec,.bsec.open{padding:22px 28px;border-radius:20px}
.bsec.open h2.sec{border-radius:20px 20px 0 0}
.bsec .bbody{padding-bottom:14px}
@media (max-width:860px){.bsec,.bsec.open{padding:16px;border-radius:20px}.bsec.open h2.sec{border-radius:20px 20px 0 0}}
/* v9: folder titles in the body font, bold */
.bsec h2.sec,.bsec h2.sec .fold,.bsec h2.sec .fold span{font-family:var(--f-body)!important;font-weight:700!important;letter-spacing:-.03em!important;font-size:clamp(28px,3.6vw,44px)}
