/* practice-test-v2.css: practice test landing extras, run page and result extras.
   Loads after mock-exam-v5.css and reuses its tokens (--lp-*) and result classes (.mxr, .mxp). */

/* ===== landing ===== */
.pt-h1-main { display: inline; margin: 0 !important; font: inherit !important; color: inherit !important; letter-spacing: inherit !important; }
.pt-return { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 0 0 1.5rem; padding: .85rem 1.1rem; border: 1px solid rgba(0,212,170,.35); border-radius: 12px; background: rgba(0,212,170,.06); color: var(--lp-mute); font-size: .95rem; }
.pt-return b { color: var(--lp-ok); font-family: var(--lp-display); }
.pt-return-a { display: flex; gap: 1.25rem; }
.pt-return .lp-text-btn { margin: 0; }
.pt-cluster { margin: 0 0 1.25rem !important; padding: .7rem 1rem; border-radius: 10px; background: rgba(79,141,255,.08); border: 1px solid rgba(79,141,255,.25); font-size: .92rem; }
.pt-cluster strong { color: var(--lp-ink); }
.pt-eyebrow { font-size: .9rem; color: var(--lp-acc) !important; margin: 0 0 .75rem !important; }

.pt-path { margin: 0; }
.pt-path-card { padding: clamp(1.25rem, 2.5vw, 1.75rem); border: 1px solid var(--lp-line-2); border-radius: 20px; background: linear-gradient(180deg, #111725 0%, #0c1018 100%); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(79,141,255,.06); }
.pt-path-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.pt-path-k { margin: 0 !important; font-size: .84rem; color: var(--lp-faint) !important; }
.pt-path-t { margin: .15rem 0 0 !important; font: 700 1.1rem var(--lp-display); color: var(--lp-ink) !important; letter-spacing: -.01em; }
.pt-path-badge { flex: none; padding: .3rem .7rem; border-radius: 100px; background: rgba(0,212,170,.12); color: var(--lp-ok); font-size: .8rem; font-weight: 600; }
.pt-path-svg { display: block; width: 100%; height: auto; overflow: visible; }
.pt-path-grid { stroke: rgba(255,255,255,.05); stroke-width: 1; }
.pt-path-ready { stroke: var(--lp-ok); stroke-width: 1.5; stroke-dasharray: 5 5; }
.pt-path-readyt { fill: var(--lp-ok); font: 600 11px var(--lp-body); }
.pt-path-line { fill: none; stroke: var(--lp-acc); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; animation: ptDraw 1.6s .3s cubic-bezier(.3,.7,.2,1) forwards; }
@keyframes ptDraw { to { stroke-dashoffset: 0; } }
.pt-path-dot { fill: #0c1018; stroke: var(--lp-acc); stroke-width: 2; }
.pt-path-dot.key { fill: var(--lp-acc); stroke: #0c1018; stroke-width: 3; }
.pt-path-dot.ok { fill: var(--lp-ok); stroke: #0c1018; stroke-width: 3; }
.pt-path-wk { fill: var(--lp-faint); font: 500 10px var(--lp-body); }
.pt-path-steps { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--lp-line); display: grid; gap: .7rem; }
.pt-path-steps li { display: grid; grid-template-columns: .6rem 4rem 1fr auto; align-items: center; gap: .6rem; font-size: .88rem; color: var(--lp-mute); }
.pt-path-steps .d { width: .55rem; height: .55rem; border-radius: 50%; background: var(--lp-acc); }
.pt-path-steps b { color: var(--lp-faint); font-weight: 500; font-size: .8rem; }
.pt-path-steps em { font-style: normal; font: 700 .9rem var(--lp-display); color: var(--lp-ink); font-variant-numeric: tabular-nums; }
.pt-path-steps li.ok .d { background: var(--lp-ok); }
.pt-path-steps li.ok em, .pt-path-steps li.ok span:not(.d) { color: var(--lp-ok); }
.pt-path figcaption { margin-top: .9rem; font-size: .82rem; color: var(--lp-faint); text-align: center; }
@media (prefers-reduced-motion: reduce) { .pt-path-line { animation: none; stroke-dashoffset: 0; } }

/* whole-prep section */
.pt-prep-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; position: relative; }
.pt-prep-steps::before { content: ""; position: absolute; top: 1.25rem; left: 1.25rem; right: 1.25rem; height: 2px; background: linear-gradient(90deg, var(--lp-ok) 0 18%, var(--lp-acc) 18% 100%); opacity: .45; }
.pt-prep-steps li { position: relative; display: flex; flex-direction: column; padding: 0 .25rem; }
.pt-prep-n { position: relative; z-index: 1; width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--lp-bg); border: 2px solid var(--lp-acc); font: 800 1rem var(--lp-display); color: var(--lp-ink); margin-bottom: 1.1rem; }
.pt-prep-steps li:first-child .pt-prep-n { border-color: var(--lp-ok); }
.pt-prep-steps h3 { margin-bottom: .5rem !important; font-size: 1.05rem !important; }
.pt-prep-steps p { font-size: .94rem; flex: 1; }
.pt-prep-steps a { color: var(--lp-ink); text-decoration: underline; text-decoration-color: var(--lp-line-2); }
.pt-prep-steps a:hover { text-decoration-color: var(--lp-acc); }
.pt-prep-tag { align-self: flex-start; margin-top: .9rem; padding: .2rem .6rem; border-radius: 100px; background: rgba(79,141,255,.12); color: var(--lp-acc); font-size: .76rem; font-weight: 600; }
.pt-prep-tag.free { background: rgba(0,212,170,.12); color: var(--lp-ok); }
.pt-prep-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
@media (max-width: 1023px) {
    .pt-prep-steps { grid-template-columns: 1fr; gap: 0; }
    .pt-prep-steps::before { top: 1.25rem; bottom: 1.25rem; left: 1.25rem; right: auto; width: 2px; height: auto; background: var(--lp-acc); }
    .pt-prep-steps li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; padding: 0 0 1.5rem; }
    .pt-prep-n { grid-row: span 3; margin: 0; }
    .pt-prep-tag { margin-top: .5rem; }
    .pt-prep-cta .lp-btn { width: 100%; }
}
.pt-plan-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); max-width: 76rem; }
@media (max-width: 1023px) { .pt-plan-grid { grid-template-columns: 1fr; max-width: 34rem; } .pt-path { max-width: 34rem; } }

/* ===== run page ===== */
body.pt-run { min-height: 100vh; min-height: 100dvh; }
.pt-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pt-intro { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: var(--lp-faint); text-align: center; padding: 2rem; }
.pt-intro .mx-logo svg { width: 9rem; height: auto; }
.pt-test { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--lp-bg); }
.pt-test[hidden], .pt-gate[hidden], .pt-intro[hidden] { display: none; }
.pt-top { flex: none; border-bottom: 1px solid var(--lp-line); padding-top: env(safe-area-inset-top, 0px); }
.pt-top-in { max-width: 52rem; margin: 0 auto; padding: .75rem 1.25rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem; }
.pt-top-name { font-weight: 600; font-size: .92rem; color: var(--lp-mute); white-space: nowrap; }
.pt-prog { display: grid; gap: .35rem; font-size: .82rem; color: var(--lp-faint); }
.pt-track { height: 4px; border-radius: 2px; background: var(--lp-line); overflow: hidden; }
.pt-track i { display: block; height: 100%; width: 0; background: var(--lp-acc); transition: width .3s ease; }
.pt-clock { font: 600 .95rem var(--lp-display); color: var(--lp-mute); font-variant-numeric: tabular-nums; }
.pt-scroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pt-in { max-width: 46rem; margin: 0 auto; padding: clamp(1.5rem, 5vh, 3.5rem) 1.25rem 2rem; }
.pt-in-anim { animation: ptIn .25s ease-out both; }
@keyframes ptIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pt-dom { margin: 0 0 .75rem; font-size: .86rem; font-weight: 600; color: var(--lp-acc); }
.pt-q { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); line-height: 1.6; color: var(--lp-ink); margin-bottom: .5rem; }
.pt-q p { margin: 0 0 .6rem; }
.pt-hint { min-height: 1.2em; margin: 0 0 1rem; font-size: .88rem; color: var(--lp-faint); }
.pt-opts { display: grid; gap: .6rem; }
.pt-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; width: 100%; min-height: 3.5rem; padding: .8rem 1rem; text-align: left; border: 1px solid var(--lp-line); border-radius: 14px;
    background: rgba(255,255,255,.025); color: var(--lp-ink); font: inherit; font-size: 1rem; line-height: 1.5; cursor: pointer; transition: border-color .15s, background-color .15s; -webkit-tap-highlight-color: transparent; }
.pt-opt:hover:not(:disabled) { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.05); }
.pt-opt:disabled { cursor: default; }
.pt-opt-k { width: 1.85rem; height: 1.85rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--lp-line-2); font-size: .84rem; font-weight: 600; color: var(--lp-mute); }
.pt-opt-v { font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pt-opt.sel { border-color: var(--lp-acc); background: rgba(79,141,255,.10); }
.pt-opt.sel .pt-opt-k { background: var(--lp-acc); border-color: var(--lp-acc); color: #fff; }
.pt-opt.ok { border-color: var(--lp-ok); background: rgba(0,212,170,.09); }
.pt-opt.ok .pt-opt-k { background: var(--lp-ok); border-color: var(--lp-ok); color: #04241e; }
.pt-opt.ok .pt-opt-v { color: var(--lp-ok); }
.pt-opt.bad { border-color: var(--lp-bad); background: rgba(255,71,87,.08); }
.pt-opt.bad .pt-opt-k { background: var(--lp-bad); border-color: var(--lp-bad); color: #fff; }
.pt-opt.bad .pt-opt-v { color: var(--lp-bad); }
.pt-opts:has(.ok) .pt-opt:not(.ok):not(.bad) { opacity: .55; }
.pt-fb { margin-top: 1.25rem; padding: 1.1rem 1.25rem; border-radius: 14px; border-left: 3px solid var(--lp-ok); background: rgba(0,212,170,.07); animation: ptIn .25s ease-out both; }
.pt-fb.bad { border-left-color: var(--lp-warn); background: rgba(245,200,66,.07); }
.pt-fb-h { margin: 0 0 .4rem; font-weight: 700; font-size: 1.02rem; color: var(--lp-ink); }
.pt-fb-t { margin: 0 0 .6rem; color: var(--lp-mute); line-height: 1.65; }
.pt-fb-more { margin: 0; font-size: .86rem; color: var(--lp-faint); }
.pt-finish-row { margin: 2rem 0 0; text-align: center; }
.pt-keys { margin: .75rem 0 0; text-align: center; font-size: .78rem; color: var(--lp-faint); }
@media (hover: none), (pointer: coarse) { .pt-keys { display: none; } }
.pt-bar { flex: none; border-top: 1px solid var(--lp-line); background: rgba(7,9,15,.94); padding-bottom: env(safe-area-inset-bottom, 0px); }
.pt-bar-in { max-width: 46rem; margin: 0 auto; padding: .8rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pt-stat { font-size: .88rem; color: var(--lp-faint); }
.pt-bar-btns { display: flex; gap: .6rem; }
.pt-btn { min-height: 3rem; padding: 0 1.4rem; border-radius: 12px; border: 1px solid transparent; font: 600 1rem var(--lp-body); cursor: pointer; }
.pt-btn.pri { background: var(--lp-acc); color: #fff; }
.pt-btn.pri:hover { filter: brightness(1.08); }
.pt-btn.pri:disabled { opacity: .5; cursor: progress; }
.pt-btn.ghost { background: transparent; color: var(--lp-mute); border-color: var(--lp-line-2); }
.pt-btn.ghost:hover { color: var(--lp-ink); border-color: var(--lp-mute); }
.pt-gate { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.pt-gate-in { max-width: 34rem; text-align: center; }
.pt-gate-k { margin: 0 0 .5rem; color: var(--lp-ok); font-weight: 600; }
.pt-gate h1 { margin: 0 0 .75rem; font-family: var(--lp-display); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); line-height: 1.15; }
.pt-gate p { color: var(--lp-mute); line-height: 1.6; margin: 0 0 1.5rem; }
@media (max-width: 640px) {
    .pt-top-in { grid-template-columns: 1fr auto; gap: .75rem; }
    .pt-top-name { display: none; }
    .pt-bar-in { flex-direction: column-reverse; align-items: stretch; gap: .5rem; }
    .pt-bar-btns { display: grid; grid-template-columns: 1fr 2fr; }
    .pt-bar-btns .pt-btn[hidden] + .pt-btn, .pt-bar-btns .pt-btn:only-child { grid-column: 1 / -1; }
    .pt-stat { text-align: center; }
    .pt-opt-v { display: none; }
}
.pt-bar-btns:has(#ptSkip[hidden]) { display: flex; }
.pt-bar-btns:has(#ptSkip[hidden]) .pt-btn { flex: 1; }

/* ===== result extras ===== */
.ptr-navbtn { background: none; border: 0; cursor: pointer; font: inherit; }
.ptr-locked-h { margin: 1.1rem 0 .4rem; font-size: .86rem; color: var(--mx-faint); }
.ptr-locked { list-style: none; margin: 0; padding: 0; }
.ptr-locked li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--mx-line); font-size: .94rem; color: var(--mx-mute); }
.ptr-lockbtn { flex: none; padding: .3rem .7rem; border-radius: 100px; border: 1px solid var(--mx-line); background: transparent; color: var(--mx-acc); font: 600 .78rem var(--font-body, inherit); cursor: pointer; }
.ptr-lockbtn:hover { border-color: var(--mx-acc); }
.ptr-rv { padding: 1rem 0; border-top: 1px solid var(--mx-line); }
.ptr-rv:first-child { border-top: 0; }
.ptr-rv-m { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: .84rem; font-weight: 600; color: var(--mx-ink); }
.ptr-rv-m span { font-weight: 400; color: var(--mx-faint); }
.ptr-rv-q { color: var(--mx-ink); font-size: .95rem; line-height: 1.6; margin-bottom: .5rem; }
.ptr-rv-a { margin: 0 0 .4rem; font-size: .92rem; color: var(--mx-ok); }
.ptr-rv-e { margin: 0; font-size: .9rem; color: var(--mx-mute); line-height: 1.6; }
#ptrPlansRoot { max-width: 60rem; margin: 0 auto; }
.ptr-plans { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem; margin: 1.5rem 0 0; align-items: start; }
.ptr-plans .mxs-btn { width: 100%; margin-top: .5rem; }
.ptr-emp { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; margin: 1.25rem 0 0; padding: 1.1rem 1.25rem; border: 1px dashed var(--mx-line); border-radius: 14px; }
.ptr-emp strong { color: var(--mx-ink); }
.ptr-emp p { margin: .25rem 0 0; font-size: .9rem; color: var(--mx-mute); max-width: 46ch; }
.ptr-emp .mxs-btn { width: auto; text-decoration: none; }
@media (max-width: 720px) { .ptr-plans { grid-template-columns: 1fr; } }
/* Elements here set display, so make the hidden attribute win everywhere on these pages. */
.lp [hidden], .pt-run [hidden], .pt-res [hidden] { display: none !important; }

/* ===== run page on desktop: one wide column, read top to bottom =====
   Question, then answers, then explanation, using most of the screen instead of a narrow strip.
   Text size steps up on large screens so lines stay comfortable to read. Long questions scroll. */
.pt-scroll { min-height: 0; }
@media (min-width: 1100px) {
    .pt-in, .pt-top-in, .pt-bar-in { max-width: 80rem; padding-left: clamp(1.5rem, 4vw, 3.5rem); padding-right: clamp(1.5rem, 4vw, 3.5rem); }
    .pt-q { font-size: 1.15rem; line-height: 1.75; }
    .pt-opt { font-size: 1.05rem; min-height: 3.75rem; }
    .pt-fb-t { font-size: 1.02rem; }
}
@media (min-width: 1600px) { .pt-in, .pt-top-in, .pt-bar-in { max-width: 88rem; } .pt-q { font-size: 1.2rem; } }

/* Loading screens reuse the mock's .mxc styles, which are hidden until shown. The practice pages
   show and hide with the hidden attribute, so a visible .mxc must be displayed here. */
.pt-run .mxc:not([hidden]), .pt-res .mxc:not([hidden]) { display: block; }
.pt-res #ptrLoading { position: static; min-height: 60vh; }
.pt-inline-btn { margin: 0 !important; font-size: inherit !important; }
/* Stop pull-to-refresh from reloading the page mid-test */
html, body.pt-run {
    overscroll-behavior-y: none;
}

.pt-scroll {
    overscroll-behavior-y: contain;
}

/* The copy says "no timer", so do not show a counting clock */
.pt-clock {
    display: none;
}

/* Skip button fills the row when Next is hidden */
.pt-bar-btns:has(#ptNext[hidden]) {
    display: flex;
}

    .pt-bar-btns:has(#ptNext[hidden]) .pt-btn {
        flex: 1;
    }

/* Correct / wrong cue on phones: a tick or cross instead of the hidden label */
@media (max-width: 640px) {
    .pt-opt-v {
        display: inline;
        font-size: 0;
    }

    .pt-opt.ok .pt-opt-v::before {
        content: "\2713";
        font-size: 1.1rem;
    }

    .pt-opt.bad .pt-opt-v::before {
        content: "\2717";
        font-size: 1.1rem;
    }
}