/* FINSforce mock exam. Loaded only on pages using the "Mock exam" template. Uses tokens from style.css. */
.mx-hero .cert-facts dd { font-size: 1.05rem; }
.mx-shell { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 4.5rem); scroll-margin-top: calc(var(--ff-header-h) + 1rem); }
.mx { --mx-ok: var(--ff-mint); --mx-ok-soft: var(--ff-mint-tint); --mx-bad: #B3372F; --mx-bad-soft: #F8E1DE; --mx-flag: #8A6500; --mx-flag-soft: #FFF3BF; --mx-yellow: #FFE358; scroll-margin-top: calc(var(--ff-header-h) + 1rem); font-family: var(--ff-sans); color: var(--ff-ink); }
.mx-admin { margin: 0 0 1.25rem; padding: .8rem 1rem; border-radius: 12px; background: var(--ff-amber-tint); color: var(--ff-amber); font-weight: 500; }

/* Cards and type */
.mx-card { position: relative; overflow: hidden; background: #fff; border: 1.5px solid var(--ff-line); border-radius: 22px; padding: clamp(1.25rem, 3vw, 2rem); }
.mx-card > * { position: relative; z-index: 1; }
.mx-card > .mx-ghost { position: absolute; right: 1.1rem; bottom: -1.8rem; z-index: 0; font: 800 clamp(6rem, 13vw, 9.5rem)/1 var(--ff-sans); letter-spacing: -.05em; color: var(--ff-lilac); opacity: .26; pointer-events: none; user-select: none; }
.mx-eyebrow { margin: 0; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ff-purple); }
.mx-h { margin: .2rem 0 .9rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; color: var(--ff-purple); text-wrap: balance; }
.mx-big-h { font-size: clamp(1.5rem, 3vw, 2rem); }
.mx-h3 { margin: 1.75rem 0 .75rem; font-size: 1.05rem; font-weight: 700; color: var(--ff-purple); }
.mx-muted { margin: 0; color: var(--ff-muted); }
.mx-small { font-size: .9rem; }
.mx-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.mx-banner { margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 14px; background: var(--ff-lavender); border: 1.5px solid var(--ff-lilac); font-size: .95rem; }
.mx-banner .mx-row { margin-top: .7rem; }

/* Buttons */
.mx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 12px; border: 1.5px solid var(--ff-line); background: #fff; color: var(--ff-ink); font: 600 .95rem/1.2 var(--ff-sans); cursor: pointer; transition: background .12s, border-color .12s; }
.mx-btn:hover { background: var(--ff-mist); border-color: var(--ff-lilac); }
.mx-btn:focus-visible, .mx-opt:focus-visible, .mx-cell:focus-visible { outline: 3px solid var(--ff-purple); outline-offset: 2px; }
.mx-btn[disabled] { opacity: .45; cursor: not-allowed; }
.mx-primary { background: var(--ff-purple); border-color: var(--ff-purple); color: #fff; }
.mx-primary:hover { background: var(--ff-purple-2); border-color: var(--ff-purple-2); }
.mx-lg { min-height: 50px; padding-inline: 1.6rem; font-size: 1.02rem; }
.mx-sm { min-height: 36px; padding: .35rem .8rem; font-size: .88rem; }
.mx-btn.flagged { background: var(--mx-flag-soft); border-color: var(--mx-yellow); color: var(--mx-flag); }
.mx-btn-onbar { background: transparent; color: #fff; border-color: rgba(232, 223, 245, .5); min-height: 38px; }
.mx-btn-onbar:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* Sticky exam bar sits under the site header */
.mx-bar { position: sticky; top: calc(var(--ff-header-h) + .5rem); z-index: 20; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; padding: .65rem .75rem .65rem 1.1rem; border-radius: 16px; background: var(--ff-night); color: #fff; box-shadow: 0 10px 24px -14px rgba(30, 14, 76, .6); }
.admin-bar .mx-bar { top: calc(var(--ff-header-h) + 32px + .5rem); }
@media (max-width: 782px) { .admin-bar .mx-bar { top: calc(var(--ff-header-h) + .5rem); } }
.mx-bar-label { margin-right: auto; font-weight: 600; }
.mx-timer { padding: .3rem .9rem; border-radius: 99px; background: rgba(255, 255, 255, .14); font-weight: 700; font-variant-numeric: tabular-nums; }
.mx-timer.low { background: var(--mx-bad); }

/* Start screen */
.mx-start { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.mx-modes { display: grid; gap: .65rem; margin: 0 0 .5rem; padding: 0; border: 0; }
.mx-mode { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border: 1.5px solid var(--ff-line); border-radius: 14px; cursor: pointer; }
.mx-mode:has(input:checked) { border-color: var(--ff-purple); background: var(--ff-mist); }
.mx-mode input { margin-top: .3rem; accent-color: var(--ff-purple); }
.mx-mode strong { display: block; color: var(--ff-night); }
.mx-mode span { color: var(--ff-muted); font-size: .95rem; line-height: 1.45; }
.mx-label { display: block; margin: .9rem 0 .35rem; font-weight: 600; }
.mx select, .mx input[type="number"] { width: 100%; min-height: 44px; padding: .5rem .75rem; border: 1.5px solid var(--ff-line); border-radius: 12px; background: #fff; font: 500 1rem var(--ff-sans); color: var(--ff-ink); }
.mx-check { display: flex; gap: .55rem; align-items: center; margin-top: .75rem; font-weight: 500; }
.mx-check input { width: 18px; height: 18px; accent-color: var(--ff-purple); }
#mx-timenote { margin-top: 1rem; }
.mx-rules { margin: 0; padding-left: 1.1rem; color: var(--ff-muted); line-height: 1.55; }
.mx-rules li + li { margin-top: .45rem; }
.mx-seclist { list-style: none; margin: 0 0 1rem; padding: 0; }
.mx-seclist li { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--ff-line); }
.mx-seclist b { color: var(--ff-purple); font-variant-numeric: tabular-nums; }

/* Question */
.mx-exam { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; align-items: start; }
.mx-qhead { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mx-qhead .mx-small { margin-top: .15rem; }
.mx-stem { margin: 0 0 1.2rem; font: 500 1.12rem/1.55 var(--ff-sans); color: var(--ff-night); white-space: pre-line; }
.mx-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.mx-opt { display: flex; gap: .8rem; align-items: flex-start; width: 100%; padding: .8rem .95rem; text-align: left; background: #fff; border: 1.5px solid var(--ff-line); border-radius: 14px; font: 400 1rem/1.5 var(--ff-sans); color: var(--ff-ink); cursor: pointer; transition: background .12s, border-color .12s; }
button.mx-opt:hover { border-color: var(--ff-purple); }
.mx-k { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid var(--ff-line); font-size: .82rem; font-weight: 700; color: var(--ff-muted); }
.mx-opt.multi .mx-k { border-radius: 50%; }
.mx-opt.sel { border-color: var(--ff-purple); background: var(--ff-lavender); }
.mx-opt.sel .mx-k { background: var(--ff-purple); border-color: var(--ff-purple); color: #fff; }
.mx-opt.right { border-color: var(--mx-ok); background: var(--mx-ok-soft); cursor: default; }
.mx-opt.right .mx-k { background: var(--mx-ok); border-color: var(--mx-ok); color: #fff; }
.mx-opt.wrong { border-color: var(--mx-bad); background: var(--mx-bad-soft); cursor: default; }
.mx-opt.wrong .mx-k { background: var(--mx-bad); border-color: var(--mx-bad); color: #fff; }
div.mx-opt { cursor: default; }
.mx-qfoot { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.mx-qfoot .mx-row { margin-top: 0; }

/* Navigator */
.mx-nav { position: sticky; top: calc(var(--ff-header-h) + 5rem); }
.admin-bar .mx-nav { top: calc(var(--ff-header-h) + 32px + 5rem); }
.mx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.mx-stats div { padding: .5rem; border-radius: 12px; background: var(--ff-mist); text-align: center; }
.mx-stats b { display: block; font-size: 1.3rem; color: var(--ff-purple); font-variant-numeric: tabular-nums; }
.mx-stats span { font-size: .75rem; color: var(--ff-muted); }
.mx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.mx-cell { position: relative; height: 40px; border-radius: 10px; border: 1.5px solid var(--ff-line); background: #fff; font: 600 .9rem var(--ff-sans); color: var(--ff-ink); font-variant-numeric: tabular-nums; cursor: pointer; }
.mx-cell.ans { background: var(--ff-lavender); border-color: var(--ff-purple); }
.mx-cell.cur { outline: 3px solid var(--ff-purple); outline-offset: 1px; }
.mx-cell.flag::after { content: ""; position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--mx-yellow); border: 1.5px solid var(--ff-purple); }
.mx-cell.ok { background: var(--mx-ok-soft); border-color: var(--mx-ok); }
.mx-cell.bad { background: var(--mx-bad-soft); border-color: var(--mx-bad); }
.mx-legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .9rem; font-size: .82rem; color: var(--ff-muted); }
.mx-legend i { display: inline-block; width: 12px; height: 12px; margin-right: .3rem; vertical-align: -1px; border-radius: 3px; border: 1.5px solid var(--ff-line); }
.mx-legend i.a { background: var(--ff-lavender); border-color: var(--ff-purple); }
.mx-legend i.f { background: var(--mx-yellow); border-color: var(--ff-purple); border-radius: 50%; }

/* Review and results */
.mx-scroll { margin-top: 1.25rem; overflow-x: auto; }
.mx-tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mx-tbl th, .mx-tbl td { padding: .65rem .7rem; border-bottom: 1px solid var(--ff-line); text-align: left; vertical-align: top; }
.mx-tbl th { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ff-muted); }
.mx-pill { display: inline-block; padding: .15rem .6rem; border-radius: 99px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.mx-pill.ok { background: var(--mx-ok-soft); color: var(--mx-ok); }
.mx-pill.bad { background: var(--mx-bad-soft); color: var(--mx-bad); }
.mx-pill.flag { background: var(--mx-flag-soft); color: var(--mx-flag); }
.mx-pill.none { background: var(--ff-mist); color: var(--ff-muted); }
.mx-score { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: .5rem; }
.mx-score .mx-h { margin: 0; }
.mx-bigscore { font: 800 clamp(2.8rem, 7vw, 3.6rem)/1 var(--ff-sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mx-bigscore.pass { color: var(--mx-ok); }
.mx-bigscore.fail { color: var(--mx-bad); }
.mx-seg { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) 70px; gap: .8rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--ff-line); }
.mx-meter { height: 12px; border-radius: 99px; background: var(--ff-mist); overflow: hidden; }
.mx-meter i { display: block; height: 100%; background: var(--ff-purple); }
.mx-meter i.ok { background: var(--mx-ok); }
.mx-meter i.bad { background: var(--mx-bad); }
.mx-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.mx-tip { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 12px; background: var(--ff-mist); }
.mx-tip a, .mx-study { color: var(--ff-purple); font-weight: 600; }
.mx-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 1rem; }
.mx-filters .mx-btn[aria-pressed="true"] { background: var(--ff-purple); border-color: var(--ff-purple); color: #fff; }
.mx-rev + .mx-rev { margin-top: 1rem; }
.mx-rev { scroll-margin-top: calc(var(--ff-header-h) + 5rem); }
.mx-why { margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; background: var(--ff-mist); }
.mx-why p { margin: 0; font: 400 1rem/1.6 var(--ff-serif); }
.mx-why p + .mx-study { display: inline-block; margin-top: .5rem; }

@media (max-width: 900px) {
	.mx-start, .mx-exam { grid-template-columns: minmax(0, 1fr); }
	.mx-nav { position: static; }
	.mx-seg { grid-template-columns: 1fr 70px; }
	.mx-seg .mx-meter { grid-column: 1 / -1; order: 3; }
}
@media (prefers-reduced-motion: reduce) { .mx-btn, .mx-opt { transition: none; } }
