/* Aptitude test (careers): candidate page and reviewer page. Builds on site.css. */
.apt { --ok: #1F9D55; --bad: #D64545; }
.apt .topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; padding-inline: clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 2px solid var(--ink); }
.apt .topbar .tag { font: 700 14px var(--body); color: var(--grey); }
.apt .wrap { max-width: 980px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 40px) 80px; }
.apt .card { background: var(--card); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 8px 8px 0 var(--ink); padding: clamp(20px, 3.5vw, 36px); }
.apt .h1 { font-size: clamp(40px, 5.4vw, 72px); max-width: 16ch; }
.apt .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 34px 0; }
.apt .fact { background: var(--card); border: 3px solid var(--ink); border-radius: 16px; padding: 16px 18px; box-shadow: 5px 5px 0 var(--agent); }
.apt .fact b { display: block; font: 700 30px var(--display); letter-spacing: -0.02em; }
.apt .fact span { font-size: 15px; color: var(--grey); }
@media (max-width: 760px) { .apt .facts { grid-template-columns: 1fr 1fr; } }
.apt .rules { margin: 0 0 30px; padding-left: 22px; font-size: 17px; }
.apt .rules li { margin: 6px 0; }
.apt .kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 30px; }
.apt .kinds span { border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font: 600 14px var(--body); background: var(--card); }

/* form */
.apt form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.apt form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .apt form { grid-template-columns: 1fr; } }
.apt label { display: grid; gap: 7px; font: 700 15px var(--body); }
.apt label small { font-weight: 500; color: var(--grey); }
.apt input[type=text], .apt input[type=email], .apt input[type=tel], .apt input[type=url], .apt input[type=password] { height: 52px; border: 2.5px solid var(--ink); border-radius: 12px; padding: 0 14px; font: 500 17px var(--body); background: var(--card); color: var(--ink); }
.apt input:focus { outline: 3px solid var(--agent); outline-offset: 2px; }
.apt .file { display: flex; align-items: center; gap: 14px; border: 2.5px dashed var(--ink); border-radius: 12px; padding: 14px; background: var(--card); cursor: pointer; font-weight: 600; }
.apt .file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.apt .file .pick { flex: none; border: 2px solid var(--ink); border-radius: 10px; padding: 6px 12px; background: var(--paper); }
.apt .file .fname { font-weight: 500; color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apt .file.has .fname { color: var(--ink); }
.apt .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 16px; }
.apt .check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.apt .err { color: var(--bad); font-weight: 600; min-height: 1.4em; margin: 0; }
.apt .hp { position: absolute; left: -9999px; }
.apt .actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.apt .muted { color: var(--grey); font-size: 15px; }

/* test */
.apt .status { display: flex; align-items: center; gap: 18px; font: 700 16px var(--body); }
.apt .timer { font: 700 22px var(--display); font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.apt .timer.low { color: var(--bad); }
.apt .progress { height: 6px; background: var(--rule); position: sticky; top: 68px; z-index: 19; }
.apt .progress i { display: block; height: 100%; background: var(--agent); width: 0; transition: width .3s; }
.apt .q { display: grid; gap: 18px; }
.apt .qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.apt .qtype { font: 800 12px var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.apt .prompt { font: 700 clamp(20px, 2.2vw, 26px) / 1.3 var(--display); margin: 0; letter-spacing: -0.01em; }
.apt canvas { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.apt .scene { border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; background: #fff; }
.apt .scene canvas { margin: 0 auto; }
.apt .opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.apt .opts.text { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.apt .opts.text.long { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.apt .opts.text .opt { padding: 20px 14px 10px; text-align: center; }
.apt .opt { position: relative; display: grid; place-items: center; min-height: 64px; padding: 8px; border: 3px solid var(--ink); border-radius: 14px; background: var(--card); cursor: pointer; font: 700 20px var(--display); color: var(--ink); transition: transform .1s, box-shadow .1s; }
.apt .opt:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.apt .opt .k { position: absolute; top: 6px; left: 8px; font: 800 12px var(--body); color: var(--grey); }
.apt .opt[aria-pressed=true] { border-color: var(--agent); box-shadow: 0 0 0 3px var(--agent), 5px 5px 0 var(--ink); transform: translate(-2px, -2px); }
.apt .opt canvas { max-width: 150px; }
.apt .num { display: flex; gap: 12px; align-items: center; }
.apt .num input { width: 140px; height: 60px; font: 700 28px var(--display); text-align: center; border: 3px solid var(--ink); border-radius: 14px; }
.apt .qnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.apt .linkbtn { background: none; border: 0; font: 700 16px var(--body); color: var(--grey); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 8px 4px; }
.apt .linkbtn:hover { color: var(--ink); }
.apt .notice { background: #FFF4E5; border: 2.5px solid var(--ink); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 15px; }
.apt [hidden] { display: none !important; }
.apt .center { text-align: center; }
.apt .big { font: 700 clamp(34px, 4.4vw, 56px) / 1.05 var(--display); letter-spacing: -0.03em; margin: 0 0 14px; }

/* reviewer page */
.apt .tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.apt .tabs button { height: 44px; padding: 0 18px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--card); font: 700 15px var(--body); cursor: pointer; }
.apt .tabs button[aria-selected=true] { background: var(--ink); color: var(--paper); }
.apt .rq { margin-bottom: 26px; }
.apt .rq .opt { cursor: default; }
.apt .rq .opt.right { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok); }
.apt .rq .opt.right::after { content: "✓ answer"; position: absolute; bottom: 4px; right: 8px; font: 800 11px var(--body); color: var(--ok); }
.apt .answer { font: 700 18px var(--body); color: var(--ok); }
.apt table.res { width: 100%; border-collapse: collapse; font-size: 15px; }
.apt table.res th, .apt table.res td { text-align: left; padding: 10px 8px; border-bottom: 1.5px solid var(--rule); vertical-align: top; }
.apt table.res th { font: 800 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.apt .pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; border: 2px solid var(--ink); }
.apt .scroll { overflow-x: auto; }

/* camera and microphone */
.apt .camCard { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: center; }
@media (max-width: 700px) { .apt .camCard { grid-template-columns: 1fr; } }
.apt .camView { position: relative; aspect-ratio: 4 / 3; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: #1d1d1b; }
.apt .camView video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.apt .camOff { position: absolute; inset: 0; display: grid; place-items: center; color: #cfcfca; font: 700 15px var(--body); }
.apt .camText p { margin: 0 0 10px; font-size: 16.5px; }
.apt .camTitle { font: 700 22px var(--display) !important; letter-spacing: -0.01em; }
.apt .camText .warn { background: #FFF4E5; border: 2.5px solid var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 15.5px; }
.apt .meter { display: flex; gap: 4px; height: 18px; align-items: end; margin: 14px 0 16px; }
.apt .meter i { width: 10px; height: 100%; border-radius: 3px; background: var(--rule); transition: background .08s; }
.apt .meter i.on { background: var(--agent); }
.apt .live { display: inline-flex; align-items: center; gap: 8px; font: 700 13px var(--body); color: var(--grey); }
.apt .live video { width: 52px; height: 39px; object-fit: cover; border-radius: 7px; border: 2px solid var(--ink); transform: scaleX(-1); background: #1d1d1b; }
.apt .live i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #D64545; margin-right: 5px; animation: aptPulse 1.6s infinite; }
.apt .live.loud i { box-shadow: 0 0 0 4px rgba(214, 69, 69, .25); }
@keyframes aptPulse { 50% { opacity: .35; } }
@media (max-width: 640px) { .apt .live span { display: none; } }
.apt .blocker { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(20, 20, 20, .55); backdrop-filter: blur(4px); }
.apt .blocker .card { max-width: 520px; }
