#academy-placement {scroll-margin-top:5rem}
.placement-member-link {margin:1.25rem 0 2rem}
.placement-shell {background:#fcf8ef;border:1px solid #d4c4aa;border-top:3px solid #782b33;border-radius:12px;padding:clamp(1.25rem,4vw,3.75rem);color:#352b24}
.placement-shell h2 {margin:.5em 0;font-size:clamp(1.75rem,3.3vw,3.2rem);max-width:26ch;line-height:1.1}
.placement-shell p {max-width:62ch;line-height:1.65}
.placement-shell:has(> .placement-intro) {container-type:inline-size}
.placement-intro {display:grid;inline-size:max-content;max-inline-size:100%;margin-inline:auto;gap:clamp(16px,2.2vw,24px)}
/* The heading sets the shared measure; supporting text wraps inside it. */
.placement-intro > :is(.placement-start,small) {contain:inline-size;min-width:0}
.placement-intro h2 {max-width:none;margin:0;font-size:clamp(1.05rem,6.65cqi,2.65rem);line-height:1.12;letter-spacing:-.025em;text-wrap:balance}
.placement-start {display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:clamp(12px,3cqi,24px);align-items:end}
.placement-checklist {display:grid;gap:7px;list-style:none;margin:0;padding:0;font-size:.94rem;line-height:1.35}
.placement-checklist li {position:relative;padding-inline-start:18px}
.placement-checklist li::before {content:"";position:absolute;inset-inline-start:2px;top:.22em;width:5px;height:9px;border:solid #713341;border-width:0 1.7px 1.7px 0;transform:rotate(42deg)}
.placement-start .btn {min-height:38px;padding:7px 16px;font-size:13px;justify-self:end;white-space:nowrap}
.placement-intro > small {display:block;color:#655047;font:italic .72rem/1.55 Georgia,serif;text-align:center;text-wrap:balance}
@container (min-width:30rem){.placement-intro > small{text-align:justify;text-align-last:justify}}
@media(max-width:480px){.placement-checklist{font-size:.86rem}.placement-start .btn{padding-inline:14px}}
.placement-shell button {cursor:pointer}
.placement-shell button:disabled {opacity:.55;cursor:default}
.placement-progress,.placement-actions {display:flex;flex-wrap:wrap;align-items:center;gap:1rem}
.placement-progress {font-size:.85rem;color:#6f4c3a}
.placement-progress progress {accent-color:#782b33;width:min(13rem,50%)}
.placement-options {display:grid;gap:.55rem;max-width:54rem;border:0;margin:1.3rem 0;padding:0}
.placement-options label {cursor:pointer;padding:.8rem 1rem;display:flex;align-items:baseline;gap:.75rem;background:#fffdf9;border:1px solid #d7c9b6;border-radius:8px}
.placement-options label:has(:checked) {border-color:#73313a;background:#f6eae3}
.placement-options input {accent-color:#751f2b}
.placement-text {color:#671e2a;text-decoration:underline;text-underline-offset:.25em;padding:.5em 0;background:none;border:none;font:inherit}
.placement-report {margin-block:1rem;padding:1.25rem;background:#f3ecdf;border-radius:10px}
.placement-report strong {font-size:2.2rem;color:#671e2a}
.placement-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.placement-shell blockquote {max-width:65ch;margin:1rem 0;padding:.25rem 1rem;border-inline-start:3px solid #ac8d69;line-height:1.6}
.placement-shell audio {width:min(100%,25rem);display:block;margin:.75rem 0}
.placement-options #placement-word {width:min(100%,22rem);box-sizing:border-box;padding:.75rem;border:1px solid #a08a71;border-radius:.4rem;font:inherit}
.placement-report details {margin-top:1rem}
.placement-report summary {cursor:pointer}
.placement-samples {margin-block:1rem}
.placement-samples summary {cursor:pointer}
.placement-samples textarea {box-sizing:border-box;display:block;width:min(100%,58ch);margin:.4rem 0;padding:.6rem;font:inherit}
.placement-sample-text {white-space:pre-wrap;overflow-wrap:anywhere}

.placement-checkpoint {display:grid;gap:clamp(1.75rem,3.2vw,3rem)}
.placement-checkpoint header h2 {margin:.4em 0 0}
.placement-checkpoint .placement-advice,
.placement-continuation {display:grid;justify-items:start;gap:1rem}
.placement-checkpoint .placement-advice > *,
.placement-continuation > p {margin:0}
.placement-continuation {border-block-start:1px solid #d4c4aa;padding-block-start:clamp(1.5rem,3vw,2.5rem)}
.placement-continuation .placement-actions {gap:.75rem 1.75rem}
.placement-continuation small {max-width:62ch;line-height:1.55;color:#68594d}
.placement-checkpoint [data-placement-result]:empty {display:none}

.placement-guest-checkpoint {grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:clamp(12px,3vw,26px)}
.placement-guest-checkpoint p {max-width:55ch;margin:0;line-height:1.5;font-weight:500}
.placement-guest-checkpoint .placement-login {margin-inline-end:clamp(26px,calc(55px - 3vw),35px);box-sizing:border-box;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#651d2a;color:#fff9ef}
.placement-login svg {width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.placement-login:focus-visible {outline:2px solid #651d2a;outline-offset:4px}
@media(hover:hover){.placement-guest-checkpoint .placement-login:hover{background:#4a1420}}

.placement-question {--placement-accent:#651d2a;--placement-line:#d9cfc1;--placement-surface:#fffdf8;color:#30231e}
.placement-question .placement-progress {display:grid;grid-template-columns:1fr auto;gap:9px 18px;color:#695c52;font-size:.78rem;line-height:1.3}
.placement-progress > :first-child {font-weight:700;color:#582531}
.placement-timer {text-align:right;font-variant-numeric:tabular-nums}
.placement-timer b {font-weight:650}
.placement-question progress {display:block;grid-column:1/-1;appearance:none;box-sizing:border-box;width:100%;height:5px;overflow:hidden;border:0;border-radius:5px;background:#e6dbce;color:var(--placement-accent)}
.placement-question progress::-webkit-progress-bar {background:#e6dbce}
.placement-question progress::-webkit-progress-value {background:var(--placement-accent);border-radius:5px}
.placement-question progress::-moz-progress-bar {background:var(--placement-accent);border-radius:5px}
.placement-skill {margin:clamp(20px,3vw,32px) 0 8px;color:#743441;font-weight:700;font-size:.75rem;line-height:1.4;letter-spacing:.025em}
.placement-shell .placement-prompt {max-width:none;text-wrap:wrap}
.placement-question h2 {margin:0 0 18px;font:500 clamp(1.65rem,3.2vw,2.65rem)/1.12 var(--serif,Georgia,serif);letter-spacing:-.025em}
.placement-question .placement-progress + h2 {margin-top:22px}
.placement-question blockquote {box-sizing:border-box;max-width:none;margin:0 0 20px;padding:13px 17px;background:#f0e9dd;border-inline-start:3px solid #a78368;color:#45382f;font-size:clamp(.91rem,1.25vw,1.02rem);font-style:normal;line-height:1.55}
.placement-question .placement-options {display:block;max-width:none;min-width:0;margin:0 0 17px}
.placement-response-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.placement-options .placement-choice {box-sizing:border-box;display:flex;align-items:center;gap:11px;min-height:55px;padding:12px 15px;border:1px solid var(--placement-line);border-radius:10px;background:var(--placement-surface);color:inherit;font-size:.96rem;font-weight:550;line-height:1.35;overflow-wrap:anywhere}
.placement-options input[type=radio] {flex:none;box-sizing:border-box;margin:0;width:17px;height:17px;accent-color:var(--placement-accent)}
.placement-options .placement-choice:has(:checked) {border-color:var(--placement-accent);box-shadow:inset 0 0 0 1px var(--placement-accent);background:#f7eded}
.placement-options .placement-choice:has(:focus-visible),.placement-track:has(:focus-visible) {outline:2px solid #75444b;outline-offset:3px}
.placement-response-grid:has(#placement-word) {grid-template-columns:1fr;gap:6px}
.placement-response-grid label[for=placement-word] {padding:0;background:transparent;border:0;cursor:text;font-size:.87rem;font-weight:650}
.placement-response-grid #placement-word {width:100%;min-height:48px;background:var(--placement-surface);color:inherit}
.placement-nav {justify-content:space-between;gap:12px;padding-top:15px}
.placement-nav [data-placement=next] {margin-inline-start:auto;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:12px}
.placement-player .placement-replay {min-height:44px;border:0;background:transparent;color:#64313a;font:inherit;font-weight:650}
.placement-actions .placement-prev {min-height:44px;padding:8px 19px;border:1px solid #c2bcaf;border-radius:100px;background:#eeeae0;color:#413d36;font:inherit;font-weight:650}
@media(hover:hover){.placement-actions .placement-prev:hover{background:#e2ddd1}}
.placement-player {--played:0%;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px;margin:0 0 17px;padding:12px 16px;border:1px solid #ded0c2;border-radius:12px;background:#f4ede3;color:#531d2b}
.placement-player audio {display:none}
.placement-player .placement-play {width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:#651d2a;color:white}
.placement-play span {display:block;width:0;height:0;margin-inline-start:3px;border-block:7px solid transparent;border-inline-start:11px solid currentColor}
.placement-play.is-playing span {box-sizing:content-box;width:4px;height:13px;margin:0;border-block:0;border-inline:4px solid currentColor}
.placement-track {position:relative;display:grid;align-items:center;height:44px;border-radius:4px;min-width:0}
.placement-track svg {width:100%;height:29px;display:block;stroke:#b39094;stroke-width:2.3;stroke-linecap:round;fill:none}
.placement-track .placement-wave-played {clip-path:inset(0 calc(100% - var(--played)) 0 0);stroke:#651d2a}
.placement-track input {position:absolute;inset:0;box-sizing:border-box;margin:0;width:100%;height:100%;opacity:0;cursor:pointer}
.placement-player [data-audio-time] {color:#634f48;font-size:.78rem;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.placement-player .placement-replay {padding:0 2px;font-size:.8rem;text-underline-offset:3px;text-decoration:underline}
.placement-player [data-audio-status] {grid-column:1/-1;font-size:.85rem}
.placement-player [data-audio-status]:empty {display:none}
@media(hover:hover) {
  .placement-options .placement-choice:hover {border-color:#a57d7f}
  .placement-play:hover {background:#49141e}
}
@media(max-width:540px) {
  .placement-response-grid {grid-template-columns:1fr;gap:7px}
  .placement-options .placement-choice {min-height:46px;padding:10px 13px}
  .placement-player {grid-template-columns:auto minmax(0,1fr) auto;gap:0 9px;padding:8px 12px}
  .placement-track {grid-column:2/-1}
  .placement-player [data-audio-time] {grid-column:2}
  .placement-player .placement-replay {grid-column:3;min-height:36px}
  .placement-nav {gap:8px}
  .placement-nav .btn {padding-inline:14px}
}
