/* GH Pathshala — full mock tests (checkout, exam screen, results) */
:root { --mt-mark: #6d28d9; --mt-mark-soft: #efe7ff; }
@media (prefers-color-scheme: dark) { :root { --mt-mark: #a78bfa; --mt-mark-soft: #2a1f47; } }

.mt-table { border-collapse: collapse; margin: 10px 0; font-size: .95rem; width: auto; display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 480px) { .mt-table { font-size: .85rem; } .mt-table th, .mt-table td { padding: 5px 6px !important; } }
.mt-table th, .mt-table td { border: 1px solid var(--line); padding: 6px 10px; text-align: center; }
.mt-table th { background: var(--surface-2); }
.mt-passage { background: var(--surface-2); border-left: 4px solid var(--brand-text); border-radius: 8px; padding: 12px 14px; margin: 10px 0 12px; font-size: .98rem; line-height: 1.65; }

/* ---------- checkout ---------- */
.mt-buy { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; padding: 0; overflow: hidden; margin: 6px 0 28px; }
@media (max-width: 820px) { .mt-buy { grid-template-columns: 1fr; } }
.mt-buy-info { padding: 22px 22px 18px; }
.mt-buy-info h2 { margin: 8px 0 10px; font-size: 1.35rem; }
.mt-feats { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 7px; }
.mt-feats li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.mt-feats li::before { content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--ok-soft); color: var(--ok); margin-top: 2px; }
.mt-pay { background: var(--surface-2); border-left: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 820px) { .mt-pay { border-left: 0; border-top: 1px solid var(--line); } }
.mt-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mt-price { font-size: 2.3rem; font-weight: 800; color: var(--ink); line-height: 1; }
.mt-price small { font-size: .95rem; font-weight: 600; color: var(--ink-3); margin-left: 6px; }
.mt-methods { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-methods > span { font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.mt-methods > span.upi { border-color: var(--ok); color: var(--ok); }
.mt-rzp { min-height: 48px; }
.mt-rzp form { margin: 0; }
.mt-paysoon { background: var(--accent-soft); color: var(--accent-text); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.mt-secure { font-size: .88rem; color: var(--ink-3); margin: 0; }
.mt-code { border-top: 1px dashed var(--line); padding-top: 10px; }
.mt-code summary { cursor: pointer; font-weight: 700; color: var(--brand-text); }
.mt-code form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mt-code input { flex: 1 1 180px; text-transform: uppercase; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.mt-msg { margin: 6px 0 0; font-weight: 600; font-size: .95rem; }
.mt-msg.bad { color: var(--bad); }
.mt-msg.ok { color: var(--ok); }

.mt-unlocked { border: 2px solid var(--ok); margin: 6px 0 28px; }
.mt-unlocked h2 { margin-top: 0; }
.mt-unlocking { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-2); }
.mt-spin { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--ok-soft); border-top-color: var(--ok); animation: mtspin .8s linear infinite; }
@keyframes mtspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mt-spin { animation-duration: 2.4s; } }
.mt-codebox { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 8px; padding: 6px 12px; user-select: all; }
.mt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mt-last { margin: 10px 0 0; color: var(--ink-2); }

/* ---------- free sample questions ---------- */
.mt-sq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 14px; box-shadow: var(--shadow); }
.mt-sq-head { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-3); font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.mt-sq .q-text { margin: 0 0 12px; font-weight: 600; }
.mt-sq-sol { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.mt-sq-sol p { margin: 0 0 6px; }

/* ---------- exam screen ---------- */
body.mt-lock { overflow: hidden; }
/* highest possible layer, appended last: nothing injected by the host (e.g. the Netlify badge) can sit on top of the exam */
.mt-screen { position: fixed; inset: 0; z-index: 2147483647; background: var(--bg); display: flex; flex-direction: column; }
.mt-top { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--brand); color: #fff; min-height: 56px; }
.mt-top .mt-tname { font-weight: 700; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1rem; }
.mt-timer { font-weight: 800; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.16); border-radius: 999px; padding: 4px 12px; white-space: nowrap; font-size: 1.05rem; }
.mt-timer.low { background: #b42318; animation: mtpulse 1s infinite; }
@keyframes mtpulse { 50% { opacity: .7; } }
.mt-top button { font: inherit; font-weight: 700; cursor: pointer; border-radius: 999px; padding: 5px 12px; min-height: 36px; }
.mt-top .mt-lang { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); font-size: .9rem; }
.mt-top .mt-submit-btn { background: #fff; color: #1e3a8a; border: 0; }
.mt-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.mt-tab { font: inherit; font-size: .9rem; font-weight: 700; white-space: nowrap; cursor: pointer; border-radius: 999px; padding: 6px 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); }
.mt-tab[aria-current="true"] { background: var(--brand-soft); border-color: var(--brand-text); color: var(--brand-text); }
.mt-tab[disabled] { opacity: .55; cursor: not-allowed; }
.mt-tab .mt-tc { font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.mt-body { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 300px; min-height: 0; }
@media (max-width: 900px) { .mt-body { grid-template-columns: 1fr; } }
.mt-qpane { overflow-y: auto; padding: 16px 18px 24px; min-height: 0; }
.mt-qmeta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; margin-bottom: 10px; }
.mt-qno { font-weight: 800; font-size: 1.1rem; }
.mt-qsec { color: var(--ink-3); font-weight: 600; font-size: .92rem; }
.mt-marks { font-size: .85rem; font-weight: 700; display: inline-flex; gap: 6px; }
.mt-marks .p { color: var(--ok); background: var(--ok-soft); border-radius: 6px; padding: 1px 8px; }
.mt-marks .n { color: var(--bad); background: var(--bad-soft); border-radius: 6px; padding: 1px 8px; }
.mt-qtext { font-size: 1.05rem; margin: 0 0 14px; }
.mt-qtext b { font-weight: 700; }
.mt-opts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 760px; }
.mt-opt { width: 100%; text-align: left; font: inherit; font-size: 1rem; cursor: pointer; display: flex; gap: 12px; align-items: center; min-height: 52px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 14px; }
.mt-opt:hover { border-color: var(--brand-text); }
.mt-opt .opt-l { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--surface-2); color: var(--ink-2); }
.mt-opt[aria-pressed="true"] { border-color: var(--brand-text); background: var(--brand-soft); }
.mt-opt[aria-pressed="true"] .opt-l { background: var(--brand-text); color: var(--surface); }
.mt-opt.correct { border-color: var(--ok); background: var(--ok-soft); }
.mt-opt.correct .opt-l { background: var(--ok); color: #fff; }
.mt-opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.mt-opt.wrong .opt-l { background: var(--bad); color: #fff; }
.mt-actbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--line); }
.mt-actbar .btn { min-height: 44px; padding: 10px 14px; font-size: .95rem; }
.mt-actbar .mt-sp { flex: 1 1 auto; }
.btn-mark { background: var(--mt-mark-soft); color: var(--mt-mark); border-color: transparent; }
@media (max-width: 560px) {
  .mt-actbar { display: grid; grid-template-columns: 1fr 1fr; }
  .mt-actbar .mt-sp { display: none; }
  .mt-actbar .btn { width: 100%; }
  .mt-actbar .mt-next { grid-column: span 2; order: -1; }
}
.mt-side { border-left: 1px solid var(--line); background: var(--surface); overflow-y: auto; padding: 14px; min-height: 0; }
@media (max-width: 900px) {
  .mt-side { position: fixed; left: 0; right: 0; bottom: 0; max-height: 75vh; border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.18); transform: translateY(105%); transition: transform .2s ease; z-index: 210; }
  .mt-side.open { transform: none; }
}
.mt-side-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mt-side-h h3 { margin: 0; font-size: 1rem; }
.mt-close { display: none; }
@media (max-width: 900px) { .mt-close { display: inline-flex; } }
.mt-pal-btn { display: none; }
@media (max-width: 900px) { .mt-pal-btn { display: inline-flex; } }
.mt-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: .82rem; color: var(--ink-2); margin: 6px 0 12px; }
.mt-legend span { display: flex; align-items: center; gap: 6px; }
.mt-legend i { width: 18px; height: 18px; border-radius: 5px; display: inline-block; flex-shrink: 0; }
.mt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.mt-pq { font: inherit; font-weight: 700; font-size: .9rem; height: 40px; border-radius: 8px; cursor: pointer; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink-2); position: relative; }
.st-na, .mt-legend .st-na { background: var(--bad); color: #fff; border-color: var(--bad); }
.st-ans, .mt-legend .st-ans { background: var(--ok); color: #fff; border-color: var(--ok); }
.st-mr, .mt-legend .st-mr { background: var(--mt-mark); color: #fff; border-color: var(--mt-mark); }
.st-amr, .mt-legend .st-amr { background: var(--mt-mark); color: #fff; border-color: var(--mt-mark); }
.st-amr::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; border: 1.5px solid #fff; }
.mt-legend .st-nv { background: var(--surface-2); border: 1.5px solid var(--line); }
.mt-pq.cur { outline: 3px solid var(--accent); outline-offset: 1px; }
.mt-secsum { font-size: .85rem; color: var(--ink-3); margin: 12px 0 0; }

/* modal */
.mt-modal { position: fixed; inset: 0; z-index: 2147483647; background: rgba(10,15,30,.55); display: grid; place-items: center; padding: 16px; }
.mt-dialog { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 20px; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow); }
.mt-dialog h3 { margin-top: 0; }
.mt-dialog table { font-size: .92rem; }
.mt-dialog .mt-actions { justify-content: flex-end; }

/* start screen */
.mt-start { max-width: 760px; }
.mt-rules { padding-left: 1.2em; }
.mt-rules li { margin: .35em 0; }
.mt-langpick { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.mt-langpick label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; font-weight: 700; }
.mt-langpick input { width: 18px; height: 18px; }

/* results */
.mt-res-head { text-align: center; }
.mt-score { font-size: 2.6rem; font-weight: 800; line-height: 1.1; color: var(--brand-text); }
.mt-score small { font-size: 1.1rem; color: var(--ink-3); font-weight: 700; }
.mt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 16px 0; }
.mt-stat { background: var(--surface-2); border-radius: 12px; padding: 10px; text-align: center; }
.mt-stat b { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.mt-stat span { color: var(--ink-3); font-size: .85rem; font-weight: 600; }
.mt-stat.ok b { color: var(--ok); }
.mt-stat.bad b { color: var(--bad); }
.mt-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.mt-rq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 12px; }
.mt-rq .mt-opts { margin-bottom: 10px; }
.mt-rq .mt-opt { cursor: default; min-height: 44px; }
.mt-rq-tag { font-size: .8rem; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.mt-rq-tag.ok { background: var(--ok-soft); color: var(--ok); }
.mt-rq-tag.bad { background: var(--bad-soft); color: var(--bad); }
.mt-rq-tag.skip { background: var(--surface-2); color: var(--ink-3); }
.mt-sol { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.mt-sol p { margin: 0 0 6px; }
.mt-sol p:last-child { margin: 0; }
.mt-hub-price { font-weight: 800; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-top .mt-submit-btn { white-space: nowrap; }
.mt-sub-short { display: none; }
@media (max-width: 480px) {
  .mt-top { gap: 8px; padding: 8px 10px; }
  .mt-top .mt-tname { display: none; }
  .mt-timer { margin-right: auto; }
  .mt-sub-long { display: none; }
  .mt-sub-short { display: inline; }
}
