/* Inside the EXISTING single education tool card. No change to exterior 15px gaps. */
.gevm-qb-inline{margin-top:18px;padding-top:16px;border-top:1px solid rgba(148,163,184,.28)}
.gevm-qb-inline h3{font-size:1.17rem;margin:0 0 7px}
.gevm-qb-inline p{margin:6px 0 12px}
.gevm-qb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
.gevm-qb-grid label{display:block;min-width:0;font-weight:600}
.gevm-qb-grid select{width:100%;max-width:100%;margin-top:5px;min-height:42px}
.gevm-qb-selected,.gevm-qb-status{margin-top:10px!important;font-size:.93rem}
.gevm-qb-status[data-available="false"]{color:#ffd089}
.gevm-qb-status[data-available="true"]{color:#a8e6c7}
.gevm-qb-submit{margin-top:12px}
.gevm-qb-submit:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:640px){.gevm-qb-grid{grid-template-columns:1fr}}
/* V35 MCQ test and downloadable question paper; all inside existing tool card. */
.gevm-qb-workspace{margin-top:20px;padding:18px;border:1px solid #435b78;border-radius:14px;background:#101f35;color:#edf5ff}
.gevm-qb-workspace[hidden]{display:none!important}
.gevm-qb-paper-head{text-align:center;padding:12px 8px 18px;border-bottom:1px solid #45607d;margin-bottom:18px}
.gevm-qb-paper-head h3{font-size:1.4rem;margin:0 0 5px}
.gevm-qb-paper-head h4{font-size:1.15rem;margin:0 0 7px}
.gevm-qb-paper-head p{margin:0;font-size:.94rem}
.gevm-qb-question{margin:15px 0 22px;padding:14px 16px;border-radius:10px;border:1px solid #354c69}
.gevm-qb-question-label{font-weight:700;white-space:pre-wrap;overflow-wrap:anywhere}
.gevm-qb-options{display:grid;gap:9px;margin-top:12px}
.gevm-qb-option{display:flex;align-items:center;gap:10px;padding:9px;border-radius:7px;border:1px solid #354c69;cursor:pointer;font-weight:400}
.gevm-qb-option input{width:18px;height:18px;flex-shrink:0;margin:0}
.gevm-qb-option:has(input:checked){border-color:#ffce62;background:#283a54}
.gevm-qb-answerline{height:26px;border-bottom:1px solid #62718a}
.gevm-qb-actions{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}
.gevm-qb-download{display:inline-flex;align-items:center;text-decoration:none!important;margin-top:12px}
.gevm-qb-result-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.gevm-qb-result-stat{border:1px solid #435b78;border-radius:9px;padding:14px 8px;text-align:center;display:flex;flex-direction:column;gap:5px}
.gevm-qb-result-stat strong{font-size:1.7rem}.gevm-qb-result-stat span{font-size:.85rem}
.gevm-qb-review-item{padding:12px 0;border-bottom:1px solid #435b78}
.gevm-qb-review-item p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}
.gevm-qb-correct{color:#a8e6c7}.gevm-qb-incorrect{color:#ffd089}
.gevm-qb-notice{font-size:.9rem;color:#b0c3d8}
@media(max-width:650px){.gevm-qb-result-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.gevm-qb-workspace{padding:11px}}

/* V37: four exam question-bank fields aligned in two equal columns.
   Fixed standards is a note UNDER the controls, not a grid cell.
   Study Material layout is deliberately unchanged. */
.gevm-qb-form[data-exam-id] .gevm-qb-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 grid-template-areas:"question difficulty" "subject count";
 align-items:start;gap:12px 16px;
}
.gevm-qb-form[data-exam-id] .gevm-qb-type{grid-area:question}
.gevm-qb-form[data-exam-id] .gevm-qb-difficulty{grid-area:difficulty}
.gevm-qb-form[data-exam-id] .gevm-qb-subject-control{grid-area:subject}
.gevm-qb-form[data-exam-id] .gevm-qb-count{grid-area:count}
.gevm-qb-form[data-exam-id] .gevm-qb-grid>label{min-width:0;margin:0;align-self:start}
.gevm-qb-form[data-exam-id] .gevm-qb-grid>label select{width:100%;box-sizing:border-box}
.gevm-qb-form[data-exam-id] .gevm-qb-grid:has(.gevm-qb-difficulty[hidden]){
 grid-template-areas:"question subject" "count count";
}
.gevm-qb-form[data-exam-id] .gevm-qb-grid:has(.gevm-qb-difficulty[hidden]) .gevm-qb-count{max-width:calc(50% - 8px)}
.gevm-qb-form[data-exam-id] .gevm-qb-fixed-range{margin:12px 0 6px}
@media(max-width:640px){
 .gevm-qb-form[data-exam-id] .gevm-qb-grid,
 .gevm-qb-form[data-exam-id] .gevm-qb-grid:has(.gevm-qb-difficulty[hidden]){
  grid-template-columns:minmax(0,1fr);grid-template-areas:"question" "difficulty" "subject" "count";
 }
 .gevm-qb-form[data-exam-id] .gevm-qb-grid:has(.gevm-qb-difficulty[hidden]){grid-template-areas:"question" "subject" "count"}
 .gevm-qb-form[data-exam-id] .gevm-qb-grid:has(.gevm-qb-difficulty[hidden]) .gevm-qb-count{max-width:none}
}

/* MCQ test actions: Finish Test and unsolved paper PDF share one horizontal row.
   Wrap naturally on narrow screens without stretching either button. */
.gevm-qb-workspace .gevm-qb-actions{align-items:center;gap:12px}
.gevm-qb-workspace .gevm-qb-actions .gevm-qb-download{margin-top:0}
.gevm-qb-workspace .gevm-qb-actions .gevm-btn{display:inline-flex;align-items:center;justify-content:center;min-height:43px;box-sizing:border-box}

/* V39: MCQ answer choices, identical for Study Material, Recruitment and Career.
   The previous rule targeted #gevm-curriculum-root only, so exam pages
   reverted to a single vertical column. Scope to the shared QB workspace. */
.gevm-qb-workspace .gevm-qb-question{
  container-type:inline-size;
}
.gevm-qb-workspace .gevm-qb-options{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;
  column-gap:12px;
  row-gap:10px;
  margin-top:12px;
}
.gevm-qb-workspace .gevm-qb-option{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:52px;
  height:auto;
  margin:0;
  padding:10px 11px;
  gap:9px;
  font-weight:400;
  line-height:1.4;
  white-space:normal;
}
.gevm-qb-workspace .gevm-qb-option input[type="radio"]{
  width:18px;
  height:18px;
  flex:0 0 18px;
  margin:0;
}
.gevm-qb-workspace .gevm-qb-option span{
  display:block;
  flex:1 1 auto;
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
}
/* At ordinary tool-card widths, use two equally spaced options per row. */
@container (max-width:850px){
  .gevm-qb-workspace .gevm-qb-options{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
/* Fallback for browsers that do not support container queries. */
@supports not (container-type:inline-size){
  @media(max-width:1450px){
    .gevm-qb-workspace .gevm-qb-options{
      grid-template-columns:repeat(2,minmax(0,1fr));
    }
  }
}
/* Keep the two MCQ actions on one line when there is space. */
.gevm-qb-workspace .gevm-qb-actions{
  display:flex;
  flex-flow:row wrap;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  margin:16px 0;
}
.gevm-qb-workspace .gevm-qb-actions .gevm-btn{
  display:inline-flex;
  flex:0 1 auto;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-height:44px;
  margin:0;
  text-align:center;
  white-space:normal;
}
