/* Placement test (docs/placement-test.md). Builds on site.css + play.css (.pform, .pf, .palert). */

.pt-wrap { padding-top: 18px; padding-bottom: 48px; max-width: 760px; }
.pt-lead { max-width: 640px; margin: 0 0 14px; }
.pt-h { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 6px 0 12px; }
.pt-form { max-width: 640px; }
.pt-form .pt-h + .pf__row, .pt-form .pt-h + .pf { margin-top: 0; }
.pt-form .pf__row > select,
.pt-form .pf__row select { width: 100%; }
.pt-start { margin-top: 16px; min-height: 52px; font-size: 17px; }
.pt-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.pt-who { margin: 4px 0 6px; }
.pt-who__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pt-who__b {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
    border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none;
}
.pt-who__b.is-on { border-color: var(--green); background: var(--green-soft); color: var(--green); }

/* The test */
.pt-intro { background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.pt-bar {
    position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600;
}
.pt-bar__save { color: var(--ink-muted); font-weight: 500; }
.pt-bar__save.is-err { color: var(--red-dark); }

.pt-q { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 14px; }
.pt-q__n { font-size: 13px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .04em; }
.pt-q__p { font-size: 18px; font-weight: 600; margin: 4px 0 10px; overflow-wrap: anywhere; }
.pt-gap { display: inline-block; width: 3.2em; border-bottom: 2px solid var(--ink-soft); margin: 0 3px; vertical-align: -2px; }

.pt-item { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
.pt-item:last-child { margin-bottom: 0; }
.pt-item__l { font-weight: 600; padding: 0; margin-bottom: 6px; }
.pt-multi { font-size: 14px; color: var(--ink-muted); margin-bottom: 6px; }
.pt-opts { display: grid; gap: 6px; }
.pt-opts--inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border: 1.5px solid var(--line-strong); border-radius: 10px; cursor: pointer; }
.pt-opt input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--green); }
.pt-opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.pt-opts--inline .pt-opt { min-width: 72px; }
.pt-clear { justify-self: start; font-size: 14px; color: var(--ink-muted); }

.pt-row { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 10px; align-items: center; }
.pt-row__l { font-weight: 600; overflow-wrap: anywhere; }
.pt-row input, .pt-blank {
    font: inherit; font-size: 16px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--white); color: var(--ink); width: 100%;
}
.pt-row input:focus, .pt-blank:focus { outline: none; border-color: var(--green); }
.pt-row:has(span:only-child), .pt-row:not(:has(.pt-row__l)) { grid-template-columns: 1fr; }
.pt-inline { line-height: 2.6; font-size: 17px; overflow-wrap: anywhere; }
.pt-inline .pt-blank { width: 8.5em; max-width: 100%; padding: 6px 8px; margin: 0 4px; display: inline-block; line-height: 1.3; }

.pt-end { text-align: center; margin: 26px 0 0; }

/* Questions cannot be selected (copied out to a translator); the answer boxes still can. */
#ptForm .pt-q { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#ptForm .pt-q input { -webkit-user-select: text; user-select: text; }
.pt-noxlate { z-index: 70; background: rgba(18, 53, 33, .85); text-align: center; }
.pt-noxlate .pt-confirm__acts { justify-content: center; }

.pt-confirm { position: fixed; inset: 0; z-index: 60; background: rgba(18, 53, 33, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pt-confirm[hidden] { display: none; }
.pt-confirm__box { background: var(--white); border-radius: var(--radius); padding: 22px; max-width: 440px; width: 100%; }
.pt-confirm__box h2 { font-size: 26px; font-weight: 400; margin: 0 0 8px; }
.pt-confirm__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.pt-done { text-align: center; max-width: 560px; margin: 30px auto 0; }
.pt-done__ic { font-size: 54px; }
.pt-done__acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

@media (max-width: 560px) {
    .pt-row { grid-template-columns: 1fr; gap: 4px; }
    .pt-q { padding: 14px 12px; }
    .pt-q__p { font-size: 17px; }
}
