/* ===== Full-screen test mode (all devices) ===== */
body.in-exam .rbanner,body.in-exam .rbx-head,body.in-exam .rbx-hero,body.in-exam .socbar,body.in-exam .qc,body.in-exam .tabbar{display:none!important}
html:fullscreen,html:-webkit-full-screen{background:#e9edf3}
.tcfs-bar{position:fixed;left:0;right:0;top:0;z-index:10000;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 16px;background:#fff4d6;border-bottom:1px solid #f0c88e;color:#5a3608;font:500 .92rem/1.4 var(--f-body,system-ui,sans-serif);box-shadow:0 4px 14px rgba(0,0,0,.15)}
.tcfs-bar[hidden]{display:none}
.tcfs-bar.in{position:static;box-shadow:none;padding:8px 12px;font-size:.85rem}
.tcfs-bar.in span{flex:1 1 180px}
.tcfs-bar.in button{min-height:40px;padding:8px 12px}
.tcfs-bar span{flex:1 1 260px}
.tcfs-bar button{font:700 .9rem var(--f-body,system-ui,sans-serif);background:#16213a;color:#fff;border:0;border-radius:10px;padding:10px 14px;cursor:pointer;min-height:44px}
.tcfs-bar button.x{background:transparent;color:#5a3608;border:1px solid #f0c88e}
.tcfs-pal,.tcfs-palx,.tcfs-bg{display:none}
@media (max-width:600px){
  body.in-exam .bar .wrap{gap:6px 8px;align-items:center}
  body.in-exam .bar .secname{flex:1 1 0;min-width:0}
  body.in-exam .bar .secname b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.in-exam .bar .secname small{display:none}
  body.in-exam .bar .vin{font-size:0;gap:0}
  body.in-exam .bar .vin select{font-size:.8rem;padding:4px 6px}
  body.in-exam .bar .timer{font-size:1.15rem;padding:2px 8px}
  body.in-exam .bar .timer::before{display:none}
}
@media (max-width:860px){
  body.in-exam .tcfs-pal{display:inline-flex;align-items:center;justify-content:center;width:44px;height:40px;flex:none;border:1px solid rgba(255,255,255,.45);border-radius:10px;background:transparent;color:#fff;cursor:pointer;padding:0}
  body.in-exam .exam .side{position:fixed;top:0;right:0;bottom:0;width:min(340px,88vw);z-index:9990;background:var(--bg,#f3f4f7);overflow-y:auto;padding:12px;margin:0;box-shadow:-8px 0 24px rgba(0,0,0,.25);transform:translateX(105%);transition:transform .2s ease;visibility:hidden}
  body.in-exam.tcfs-open .exam .side{transform:none;visibility:visible}
  body.in-exam.tcfs-open .tcfs-bg{display:block;position:fixed;inset:0;z-index:9980;background:rgba(8,12,26,.5)}
  body.in-exam .tcfs-palx{display:flex;justify-content:space-between;align-items:center;font:700 1.1rem var(--f-disp,sans-serif);margin:0 0 10px}
  body.in-exam .tcfs-palx button{width:44px;height:44px;border-radius:50%;border:0;background:var(--chip,#e9ebf1);color:var(--fg,#16213a);font-size:1.2rem;cursor:pointer}
  body.in-exam .exam #pal button{min-height:44px}
}

/* ===== The test screen always uses the light DSSSB CBT look (also when the site is in dark mode) ===== */
body.in-exam{--bg:#f3f4f7;--sheet:#ffffff;--fg:#111318;--muted:#5c6170;--line:#dde0e8;--brand:#16213a;--brand-ink:#ffffff;--gold:#e8962e;--gold-soft:#fdf0de;
  --ok:#1f8a4c;--ok-soft:#e3f4ea;--bad:#c2321f;--bad-soft:#fbe6e2;--rev:#6b45b5;--rev-soft:#efe8fb;--chip:#e9ebf1;--blue:#2453c9;--card:#ffffff;--soft:#f3f5fa;--tint:#e6ecf8;
  color-scheme:light;color:#111318}
html:has(body.in-exam){color-scheme:light;background:#e9edf3}
body.in-exam .exam .panel{background:#ffffff;color:#111318}
body.in-exam .qtext,body.in-exam .psg,body.in-exam .opt,body.in-exam .opt .v{color:#111318}
body.in-exam .opt:hover{background:#eef3fb}
body.in-exam .opt.on{background:#e3edff}
body.in-exam pre.code{background:#f4f6fb!important;color:#16213a!important;border-color:#d8dce6!important}
body.in-exam .wm{filter:none!important}
body.in-exam select{color-scheme:light;background:#ffffff;color:#111318}
/* ===== Fixed exam layout: the question panel fills the screen and scrolls inside;
   question number stays on top and the buttons stay at the same place at the bottom ===== */
body.in-exam #qp{display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;height:var(--tcfs-qh,auto)}
body.in-exam #qp>*{flex-shrink:0}
body.in-exam #qp>.qhead{position:sticky;top:0;z-index:3}
body.in-exam #qp>.acts{position:sticky;bottom:0;margin-top:auto;z-index:3}
@media (min-width:861px){body.in-exam .exam .side{height:var(--tcfs-qh,auto);overflow-y:auto;overscroll-behavior:contain}}
/* section tabs: compact on computers so all sections fit in one row */
@media (min-width:861px){
  body.in-exam .steps button,body.in-exam .steps i{padding:7px 9px;font-size:.78rem}
  /* use the whole screen on computers (like the real CBT) */
  body.in-exam #app .bar .wrap,body.in-exam #app .wrap.exam{max-width:none;padding-left:20px;padding-right:20px}
}

/* pseudo full screen where the browser has no Fullscreen API (iPhone Safari, in-app browsers) */
html.tcfs-pseudo body.in-exam{min-height:100vh;min-height:100dvh}
html.tcfs-pseudo body.in-exam .rbx-foot,html.tcfs-pseudo body.in-exam footer,html.tcfs-pseudo body.in-exam .crumbs,html.tcfs-pseudo body.in-exam .bc{display:none!important}
html:-webkit-full-screen body{overflow:auto;-webkit-overflow-scrolling:touch}
