/* Pearson VUE interface replication. Deliberately institutional and unbranded:
   the candidate must recognise the shell on exam day, not ours. Scoped to
   .esgib-app so a theme's styles do not bleed in. */
.esgib-app{
  --chrome:#eef0f3; --line:#b9c0c8; --ink:#1c1e21; --ink-soft:#4a5058;
  --blue:#00548f; --blue-dark:#003f6b; --blue-soft:#e4eef6;
  --danger:#a11b1b; --ok:#1c6b3c; --warn:#8a4b00; --warn-bg:#fdf3e3;
  position:fixed; inset:0; z-index:99999; background:#fff;
  font:15px/1.45 Arial,"Helvetica Neue",Helvetica,sans-serif; color:var(--ink);
  -webkit-user-select:none; user-select:none;
}
.esgib-app *{box-sizing:border-box}
.esgib-screen{display:none; height:100%; flex-direction:column}
.esgib-screen.esgib-active{display:flex}
.esgib-pane{flex:1; overflow-y:auto; padding:28px 40px}
.esgib-narrow{max-width:820px; margin:0 auto}
.esgib-app h1{font-size:22px; margin:0 0 4px}
.esgib-app h2{font-size:16px; margin:26px 0 8px}
.esgib-muted{color:var(--ink-soft); margin-top:0; font-size:14px}

.esgib-btn{
  background:linear-gradient(#fff,#e9ecef); border:1px solid var(--line);
  border-radius:2px; padding:7px 16px; color:var(--ink);
  font:14px inherit; font-family:inherit; cursor:pointer;
}
.esgib-btn:hover:not(:disabled){background:linear-gradient(#fff,#dfe3e8)}
.esgib-btn:disabled{opacity:.45; cursor:default}
.esgib-primary{background:linear-gradient(var(--blue),var(--blue-dark)); border-color:var(--blue-dark); color:#fff; font-weight:bold}
.esgib-primary:hover:not(:disabled){background:var(--blue-dark)}
.esgib-btn:focus-visible,.esgib-input:focus-visible{outline:2px solid var(--blue); outline-offset:2px}

.esgib-topbar{
  background:var(--chrome); border-bottom:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between;
  padding:8px 14px; min-height:56px; gap:12px; flex-wrap:wrap;
}
.esgib-title{font-weight:bold; font-size:14px}
.esgib-tools{display:flex; gap:6px}
.esgib-timerbox{text-align:right; min-width:150px; display:block}
.esgib-timer{font-size:19px; font-weight:bold; font-variant-numeric:tabular-nums; display:block}
.esgib-timer.esgib-low{color:var(--danger)}
.esgib-qcount{font-size:12px; color:var(--ink-soft); display:block}
.esgib-flagbar{background:var(--chrome); border-bottom:1px solid var(--line); padding:6px 16px; display:flex; align-items:center; gap:8px; font-size:13px}
.esgib-sync{margin-left:auto; font-size:12px; color:var(--ink-soft)}

.esgib-qwrap{flex:1; overflow-y:auto; padding:26px 40px}
.esgib-qinner{max-width:900px}
.esgib-stem{font-size:16px; margin:0 0 6px}
.esgib-instruct{font-size:14px; font-style:italic; color:var(--ink-soft); margin:0 0 20px}
.esgib-opt{display:flex; gap:11px; align-items:flex-start; padding:9px 12px; border:1px solid transparent; border-radius:2px; cursor:pointer}
.esgib-opt:hover{background:var(--blue-soft)}
.esgib-opt.esgib-sel{background:var(--blue-soft); border-color:#9dbdd6}
.esgib-opt input{margin:3px 0 0; width:15px; height:15px; flex-shrink:0}
.esgib-opt .esgib-l{font-weight:bold; width:18px; flex-shrink:0}

.esgib-footer{background:var(--chrome); border-top:1px solid var(--line); padding:10px 16px; display:flex; justify-content:space-between; gap:10px}
.esgib-footer span{display:flex; gap:8px}

.esgib-lab{display:block; font-size:13px; margin:16px 0 4px}
.esgib-input{width:100%; padding:9px; border:1px solid var(--line); font:15px inherit; font-family:inherit}
.esgib-mono{letter-spacing:1px}
.esgib-rules{border:1px solid var(--line); background:#fafbfc; padding:16px 20px; margin:16px 0}
.esgib-rules ul{margin:8px 0 0; padding-left:20px}
.esgib-rules li{margin-bottom:7px}
.esgib-notice{border-left:4px solid var(--warn); background:var(--warn-bg); padding:12px 16px; margin:16px 0; font-size:14px}
.esgib-notice.esgib-bad{border-left-color:var(--danger); background:#fdecec}
.esgib-agree{display:flex; gap:10px; align-items:flex-start; margin:20px 0; padding:12px; border:1px solid var(--line)}
.esgib-agree input{width:17px; height:17px; margin-top:2px; flex-shrink:0}
.esgib-resume{font-size:13px; color:var(--warn); margin-left:10px}
.esgib-row{display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid #d7dbe0; font-size:14px}
.esgib-verdict{font-size:38px; font-weight:bold; letter-spacing:1px; margin:14px 0}
.esgib-verdict.esgib-pass{color:var(--ok)} .esgib-verdict.esgib-fail{color:var(--danger)}
.esgib-est{font-size:12px; color:var(--ink-soft); font-style:italic}

.esgib-scrim{display:none; position:fixed; inset:0; background:rgba(0,0,0,.42); z-index:100000; align-items:center; justify-content:center; padding:20px}
.esgib-scrim.esgib-open{display:flex}
.esgib-modal{background:#fff; border:1px solid var(--line); box-shadow:0 8px 34px rgba(0,0,0,.3); max-width:760px; width:100%; max-height:88vh; display:flex; flex-direction:column}
.esgib-mhd{background:var(--chrome); border-bottom:1px solid var(--line); padding:10px 16px; font-weight:bold; font-size:14px; display:flex; justify-content:space-between; align-items:center}
.esgib-mbd{padding:18px; overflow-y:auto}
.esgib-mft{border-top:1px solid var(--line); padding:11px 16px; display:flex; justify-content:flex-end; gap:8px}
.esgib-x{background:none; border:none; font-size:19px; padding:0 4px; color:var(--ink-soft); cursor:pointer}

.esgib-nav{width:100%; border-collapse:collapse; font-size:14px}
.esgib-nav th{background:var(--chrome); border:1px solid var(--line); padding:7px 10px; text-align:left; font-size:12px; text-transform:uppercase; letter-spacing:.4px}
.esgib-nav td{border:1px solid #d7dbe0; padding:5px 10px}
.esgib-nav tr:hover td{background:var(--blue-soft)}
.esgib-jump{background:none; border:none; color:var(--blue); text-decoration:underline; padding:0; font:14px inherit; font-family:inherit; cursor:pointer}
.esgib-c{color:var(--ok)} .esgib-i{color:var(--danger); font-weight:bold} .esgib-u{color:var(--ink-soft)}


.esgib-likert{display:flex; gap:6px; flex-wrap:wrap; margin:6px 0 18px}
.esgib-likert label{border:1px solid var(--line); padding:6px 13px; cursor:pointer; font-size:13px; background:#fff}
.esgib-likert input{display:none}
.esgib-likert label.esgib-on{background:var(--blue); color:#fff; border-color:var(--blue-dark)}

@media (max-width:640px){ .esgib-pane,.esgib-qwrap{padding:18px 16px} }
@media (prefers-reduced-motion:reduce){ .esgib-app *{transition:none!important; animation:none!important} }

/* ---- hub ---- */
.esgib-who{display:flex; align-items:center; gap:10px; font-size:13px; color:var(--ink-soft)}
.esgib-card{border:1px solid var(--line); background:#fafbfc; padding:18px 20px; margin:0 0 16px}
.esgib-cardhd{display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:10px}
.esgib-cardhd h2{margin:0; font-size:18px}
.esgib-attempts{width:100%; border-collapse:collapse; font-size:13px; margin:10px 0 14px; background:#fff}
.esgib-attempts th{background:var(--chrome); border:1px solid var(--line); padding:6px 9px; text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.4px}
.esgib-attempts td{border:1px solid #d7dbe0; padding:6px 9px; vertical-align:top}
.esgib-warn{color:var(--warn)}

/* ---- section header and case study ---- */
.esgib-sechead{border-left:3px solid var(--blue); padding:2px 0 2px 12px; margin:0 0 16px}
.esgib-sectitle{font-size:13px; font-weight:700; letter-spacing:.3px; color:var(--blue-dark); text-transform:uppercase}
.esgib-secnote{font-size:12.5px; color:var(--ink-soft); margin-top:2px}
.esgib-case{background:#f6f8fa; border:1px solid var(--line); padding:16px 20px; margin:0 0 20px}
.esgib-casehd{font-size:11px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--ink-soft); margin-bottom:8px}
.esgib-case p{margin:0 0 10px; font-size:14.5px; line-height:1.62}
.esgib-case p:last-child{margin-bottom:0}
@media (max-width:640px){ .esgib-case{padding:13px 15px} .esgib-case p{font-size:14px} }

/* ---- answer review ---- */
.esgib-bar{display:inline-block; width:96px; height:7px; background:#e3e8ec; vertical-align:middle; margin-right:7px}
.esgib-bar span{display:block; height:100%; background:var(--blue)}
.esgib-anssec{font-size:11px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--ink-soft); margin:26px 0 10px; padding-bottom:5px; border-bottom:1px solid var(--line)}
.esgib-ansq{border:1px solid var(--line); border-left-width:3px; padding:14px 17px; margin:0 0 13px; background:#fff}
.esgib-ansok{border-left-color:var(--ok)}
.esgib-answrong{border-left-color:var(--danger)}
.esgib-anshd{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:7px}
.esgib-ansn{font-weight:700; font-size:12px}
.esgib-anstag{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px}
.esgib-ansok .esgib-anstag{color:var(--ok)}
.esgib-answrong .esgib-anstag{color:var(--danger)}
.esgib-anstopic{font-size:11px; color:var(--ink-soft); margin-left:auto}
.esgib-ansstem{margin:0 0 10px; font-size:14.5px; line-height:1.55}
.esgib-ansopt{display:flex; gap:8px; align-items:flex-start; padding:5px 8px; font-size:13.5px; line-height:1.5}
.esgib-ansmark{width:14px; flex:0 0 14px; font-weight:700}
.esgib-anskey{background:#eaf5ee}
.esgib-anskey .esgib-ansmark{color:var(--ok)}
.esgib-ansbad{background:#fdeceb}
.esgib-ansbad .esgib-ansmark{color:var(--danger)}
.esgib-ansyou{font-size:11px; color:var(--ink-soft); font-style:normal; margin-left:6px; white-space:nowrap}
.esgib-ansnote{margin:9px 0 0; font-size:12.5px; color:var(--warn)}
.esgib-ansrat{margin:10px 0 0; padding:9px 12px; background:var(--chrome); font-size:13px; line-height:1.55}
@media (max-width:640px){ .esgib-anstopic{margin-left:0; width:100%} .esgib-ansyou{display:block; margin-left:0} }
