/* Gia Su SV · RC7.74 — PC geometry and mathematics reading layout.
   No changes below 1024 CSS px; native image zoom is preserved. */
@media screen and (min-width:1024px) {
  /* Text should read like a typed school question, not a loose poster. */
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question > .gsv-stem {
    font-size:16.5px!important;
    line-height:1.42!important;
    margin:7px 0 10px!important;
    padding:0 0 3px!important;
    letter-spacing:0!important;
  }
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question > .gsv-stem :is(p,li) {
    margin:0 0 6px!important;
    padding:0!important;
    line-height:1.42!important;
    text-align:left!important;
  }
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question > .gsv-stem > p:last-child {margin-bottom:0!important;}

  /* Precisely two thirds of the oversized ordinary illustration on desktop. */
  body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question > .gsv-stem:not(.gsv-layout-zoomed) figure.gssv-dtl12-figure {
    display:block!important;
    width:fit-content!important;
    min-width:0!important;
    max-width:min(100%,395px)!important;
    max-height:none!important;
    height:auto!important;
    margin:6px auto 9px!important;
    padding:0!important;
    overflow:visible!important;
  }
  body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question > .gsv-stem:not(.gsv-layout-zoomed) figure.gssv-dtl12-figure > img,
  body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question > .gsv-stem:not(.gsv-layout-zoomed) figure.gssv-dtl12-figure > img.gsv-layout-figure {
    display:block!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    max-height:212px!important;
    object-fit:contain!important;
    margin:0 auto!important;
  }
  /* The four small plots need some width to preserve axis labels. */
  body.single-gssv_exam.postid-5745 .gssv-study.gsv-teen .gsv-question > .gsv-stem:not(.gsv-layout-zoomed) figure.gssv-dtl12-figure:has(img:is([src$="/I21.png"],[src$="/I22.png"])) {
    width:min(100%,465px)!important;max-width:465px!important;
  }
  body.single-gssv_exam.postid-5745 .gssv-study.gsv-teen .gsv-question > .gsv-stem:not(.gsv-layout-zoomed) figure.gssv-dtl12-figure > img:is([src$="/I21.png"],[src$="/I22.png"]) {
    max-height:165px!important;
  }
  /* Zoomed images remain unrestricted and horizontally scrollable. */
  body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question > .gsv-stem.gsv-layout-zoomed figure.gssv-dtl12-figure,
  body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question > .gsv-stem.gsv-layout-zoomed figure.gssv-dtl12-figure > img {
    max-width:none!important;max-height:none!important;
  }

  /* Question I.1: option A has its own FULL row. Text NEVER wraps, even when a
     browser is zoomed; it scrolls horizontally rather than clipping content. */
  body.single-gssv_exam.postid-5745 .gssv-study.gsv-teen .gsv-question[data-question-index="1"] fieldset.gsv-mcq .gsv-options-grid {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:stretch!important;
    gap:7px!important;
    width:100%!important;
  }
  body.single-gssv_exam.postid-5745 .gssv-study.gsv-teen .gsv-question[data-question-index="1"] fieldset.gsv-mcq .gsv-options-grid > label.gsv-option:first-child,
  body.single-gssv_exam.postid-5745 .gssv-study.gsv-teen .gsv-question[data-question-index="1"] fieldset.gsv-mcq .gsv-options-grid > label.gsv-option:last-child {
    grid-column:1 / -1!important;
  }
  body.single-gssv_exam.postid-5745 .gssv-study.gsv-teen .gsv-question[data-question-index="1"] fieldset.gsv-mcq .gsv-options-grid > label.gsv-option:first-child {
    display:flex!important;
    align-items:center!important;
    min-height:45px!important;
    padding:7px 10px!important;
    white-space:nowrap!important;
    overflow:visible!important;
  }
  body.single-gssv_exam.postid-5745 .gssv-study.gsv-teen .gsv-question[data-question-index="1"] fieldset.gsv-mcq .gsv-options-grid > label.gsv-option:first-child > .gsv-rich {
    display:block!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    white-space:nowrap!important;
    font-size:14px!important;
    line-height:1.35!important;
    scrollbar-width:thin;
  }
  body.single-gssv_exam.postid-5745 .gssv-study.gsv-teen .gsv-question[data-question-index="1"] fieldset.gsv-mcq .gsv-options-grid > label.gsv-option:first-child > .gsv-rich :is(p,span,mjx-container,.MathJax,.katex) {
    white-space:nowrap!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    margin:0!important;
    line-height:1.35!important;
  }
  body.single-gssv_exam.postid-5745 .gssv-study.gsv-teen .gsv-question[data-question-index="1"] fieldset.gsv-mcq .gsv-options-grid > label.gsv-option:first-child > .gsv-rich > p {
    display:block!important;
    width:max-content!important;
    max-width:none!important;
  }
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question fieldset.gsv-mcq .gsv-options-grid > label.gsv-option {
    min-height:44px!important;
    height:auto!important;
    padding:8px 10px!important;
    margin:0!important;
    align-items:center!important;
    line-height:1.38!important;
  }
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question fieldset.gsv-mcq .gsv-option > .gsv-rich :is(p,mjx-container) {
    margin:0!important;line-height:1.4!important;
  }

  /* Math True / False: stable three-column grid; the two answers always stay
     together at the RIGHT, beside the text (never underneath). */
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question fieldset > .gsv-tf-row {
    display:grid!important;
    grid-template-columns:24px minmax(0,1fr) 164px!important;
    grid-template-rows:auto!important;
    align-items:center!important;
    gap:8px!important;
    min-height:48px!important;
    padding:5px 0!important;
    margin:0!important;
    border-bottom:1px solid #e2e9eb;
  }
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question fieldset > .gsv-tf-row > strong {
    grid-column:1!important;grid-row:1!important;
    font-size:15px!important;line-height:1.3!important;
    align-self:center!important;
    margin:0!important;padding:0!important;
  }
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question fieldset > .gsv-tf-row > .gsv-rich {
    grid-column:2!important;grid-row:1!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;padding:0!important;
    line-height:1.40!important;
    font-size:15.5px!important;
    align-self:center!important;
  }
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question fieldset > .gsv-tf-row > .gsv-rich :is(p,li) {
    margin:0!important;line-height:1.40!important;
  }
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question fieldset > .gsv-tf-row > .gsv-tf-choices {
    grid-column:3!important;grid-row:1!important;
    display:grid!important;
    grid-template-columns:repeat(2,79px)!important;
    grid-template-rows:44px!important;
    width:164px!important;min-width:164px!important;max-width:164px!important;
    margin:0!important;padding:0!important;gap:6px!important;
    justify-self:end!important;align-self:center!important;
    flex-wrap:nowrap!important;
  }
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question fieldset > .gsv-tf-row > .gsv-tf-choices > label {
    display:flex!important;align-items:center!important;justify-content:center!important;
    grid-row:1!important;
    min-width:79px!important;max-width:79px!important;width:79px!important;
    min-height:44px!important;height:44px!important;
    margin:0!important;padding:6px!important;gap:5px!important;
    white-space:nowrap!important;box-sizing:border-box!important;
    font-size:13px!important;line-height:1.2!important;
  }
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question fieldset > .gsv-tf-row > .gsv-tf-choices > label input[type=radio] {
    width:16px!important;height:16px!important;
    min-width:16px!important;flex:0 0 16px!important;margin:0!important;
  }
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question fieldset:has(>.gsv-tf-row) {
    margin:7px 0 10px!important;padding:0!important;
  }

  /* Explanations: moderate paragraph rhythm, preserve multi-step mathematics. */
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question :is(.gsv-live-feedback,.gsv-feedback,.gsv-answer-clean,.gsv-standard-steps,.gsv-method-content,.gssv-ml-solution) {
    line-height:1.42!important;
  }
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question :is(.gsv-live-feedback,.gsv-feedback,.gsv-answer-clean,.gsv-standard-steps,.gsv-method-content,.gssv-ml-solution) :is(p,li) {
    margin-top:0!important;margin-bottom:5px!important;
    padding-top:0!important;padding-bottom:0!important;
    line-height:1.42!important;
  }
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question :is(.gsv-live-feedback,.gsv-feedback,.gsv-answer-clean,.gsv-standard-steps,.gsv-method-content,.gssv-ml-solution) :is(ol,ul) {
    margin-top:4px!important;margin-bottom:7px!important;
  }
  body.single-gssv_exam.gssv-math-layout .gssv-study.gsv-teen .gsv-question :is(.gsv-live-feedback,.gsv-feedback,.gsv-answer-clean,.gsv-standard-steps,.gsv-method-content,.gssv-ml-solution) :is(.katex-display,mjx-container[display="true"],.MathJax_Display,.gsv-eq) {
    max-width:100%!important;margin:4px 0!important;
    overflow-x:auto!important;overflow-y:hidden!important;
  }
}
