/* The ask screen (Direction E, "The Signal"): the home page's one question, and the careers that answer it.
   Phone first. Colors, type, radius and spacing come from the tokens in /assets/site.css; nothing here names a
   color of its own except two tints of ink for the travelling line. Classes are for looks only: the tests and
   the script find things by data-test and data- attributes. */
@property --a{syntax:'<angle>';inherits:false;initial-value:0deg}
@keyframes aq-spin{to{--a:360deg}}
@keyframes aq-ping{0%{transform:scale(1);opacity:.55}70%,100%{transform:scale(1.9);opacity:0}}
@keyframes aq-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes aq-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes aq-blink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.08)}}
@keyframes aq-halo{from{opacity:.15}to{opacity:.6}}
@keyframes aq-flick{from{opacity:.3}to{opacity:1}}
@keyframes aq-grin{from{transform:scale(1)}to{transform:scale(1.12)}}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.aq-page{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--text);font:400 17px/1.5 var(--font-sans);-webkit-font-smoothing:antialiased}
.aq-page a{color:var(--blue)}
.aq-page a:hover{color:var(--blue-hover)}
.aq-page button{font-family:inherit}
.aq-page :focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
/* a heading that focus is moved to (for screen readers) shows no ring; controls always do */
.aq-page #flow-title:focus,.aq-page #flow-title:focus-visible{outline:none}
[hidden]{display:none !important}

.aq{flex:1;display:flex;flex-direction:column;align-items:center;padding:4px var(--space-4) 40px}
.aq-home{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center;gap:18px}
.aq-stack{width:100%;max-width:720px;display:flex;flex-direction:column;align-items:center;gap:14px}

/* Mr Thoob: the supplied drawing in a blue circle. A ring pulses out; he blinks; his bulb flickers while he checks. */
.aq-orb{position:relative;width:96px;height:96px;border-radius:var(--radius-full);background:var(--blue);flex:none}
.aq-orb::after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid var(--text);opacity:0;pointer-events:none}
/* the ring pulses out only while he is checking; at rest nothing circles him (one thing moves on its own at a time) */
.aq-orb[data-mood="thinking"]::after{animation:aq-ping .8s cubic-bezier(.2,.6,.3,1) infinite}
.aq-face{position:absolute;inset:0;border-radius:50%;overflow:hidden;display:flex;align-items:flex-end;justify-content:center}
.aq-face svg{width:88%;height:88%;display:block}
.aq-face .eye,.aq-face .mouth{transform-box:fill-box;transform-origin:center}
.aq-face .eye{animation:aq-blink 4.2s infinite}
.aq-face .halo{opacity:0;transition:opacity .25s}
.aq-face .rays{opacity:.35;transition:opacity .25s}
[data-mood="thinking"] .halo{animation:aq-halo .45s ease-in-out infinite alternate}
[data-mood="thinking"] .rays{animation:aq-flick .25s steps(2) infinite}
[data-mood="happy"] .rays{opacity:1}
[data-mood="happy"] .halo{opacity:.3}
[data-mood="happy"] .mouth{animation:aq-grin .6s cubic-bezier(.3,1.6,.5,1) both}
/* his speech bubble: two lines, with one small corner as the tail */
.aq-bubble{margin:0;background:var(--bg-elevated);border:1.5px solid var(--text);border-radius:var(--radius-md) var(--radius-md) var(--radius-md) 4px;padding:8px 13px;display:flex;flex-direction:column;gap:1px;text-align:left;color:var(--text)}
.aq-bubble strong{font-family:var(--font-display);font-weight:800;font-size:18px;line-height:1.15;letter-spacing:-.02em}
.aq-bubble span{font-size:14px;line-height:1.3;color:var(--text-muted)}
.aq-orb .aq-bubble{position:absolute;z-index:1;left:calc(100% - 4px);bottom:58%;width:max-content;max-width:min(250px,calc(50vw - 60px));animation:aq-rise .25s cubic-bezier(.2,.8,.2,1) both}
.aq-orb .aq-bubble strong{font-family:var(--font-sans);font-weight:700;font-size:14px;line-height:1.35;letter-spacing:0}
.aq-orb .aq-bubble span{font-size:14px;line-height:1.35;color:var(--text)}

/* who is asking */
/* who is asking: a small two-part setting in the top right corner, level with the header (on a phone, on its own
   line under the header, at the right). It shows on the ask screen only. */
.aq-who{position:absolute;top:14px;right:20px;display:flex;gap:2px;padding:0;background:var(--line);border-radius:var(--radius-pill)}
.aq-who button{border:0;cursor:pointer;font-size:14px;font-weight:600;padding:0 16px;border-radius:var(--radius-pill);min-height:var(--target-min);background:transparent;color:var(--text);transition:background .15s}
.aq-who button:hover{background:var(--state-hover)}
.aq-who button[aria-pressed="true"]:hover{background:var(--text)}
.aq:not([data-step="ask"]) .aq-who{display:none}
@media (max-width:600px){
  .aq-who{position:static;align-self:flex-end;margin:-6px 0 18px}
}
.aq-who button[aria-pressed="true"]{background:var(--text);color:var(--on-blue)}

/* the promise: one plain line under the question (the highlighter is kept for a marker stroke, the current tab or
   step, and a picked item or score marker) */
.aq-promise{margin:-4px 0 0;font-size:16px;line-height:1.5;color:var(--text-muted)}
.aq-proof{margin:0;font-size:14px;line-height:1.4;color:var(--text-muted)}
.aq-q{margin:0;font-family:var(--font-display);font-weight:800;font-size:clamp(38px,10vw,64px);line-height:1.04;letter-spacing:-.04em}

/* three ways to start: the current one sits on a highlighter underline */
.aq-tabs{display:flex;justify-content:center;gap:0 12px}
.aq-tabs button{font-size:14px;font-weight:600;background:none;border:0;border-bottom:4px solid transparent;cursor:pointer;padding:12px 2px 8px;min-height:44px;color:var(--text-muted);white-space:nowrap}
.aq-tabs button[aria-pressed="true"]{border-bottom-color:var(--highlight);color:var(--text)}

/* the ask box: an ink line travels its border until it is focused */
.aq-form{display:flex;gap:10px;width:100%;max-width:520px}
.aq-glow{flex:1;min-width:0;display:flex;padding:2.5px;border-radius:var(--radius-pill);position:relative;background:var(--line2)}
@supports (background:conic-gradient(from var(--a),red,blue)){
  .aq-glow,.aq-glow::before{background:conic-gradient(from var(--a),var(--border) 0deg 170deg,var(--text-dim) 240deg,#3A4257 310deg,var(--text) 352deg,var(--border) 360deg);animation:aq-spin 2.6s linear infinite}
  .aq-glow::before{content:"";position:absolute;inset:-3px;border-radius:var(--radius-pill);filter:blur(9px);opacity:.28}
}
.aq-glow:focus-within{animation:none;background:var(--text)}
.aq-glow:focus-within::before{display:none}
/* once the box has been touched or typed in, the travelling line stays still for the rest of the visit */
.aq-glow[data-still],.aq-glow[data-still]::before{animation:none;background:var(--line2)}
.aq-glow[data-still]::before{display:none}
.aq-glow[data-still]:focus-within{background:var(--text)}
.aq-box{flex:1;position:relative;z-index:1;min-width:0;width:100%;height:55px;padding:0 18px;font-family:inherit;font-size:17px;font-weight:600;color:var(--text);background:var(--bg);border:0;border-radius:var(--radius-pill)}
.aq-box::placeholder{color:var(--text-muted);font-weight:400;opacity:1}
.aq-box:focus{outline:none}
.aq-go{flex:none;width:60px;height:60px;border:0;border-radius:50%;background:var(--blue);color:var(--on-blue);cursor:pointer;display:flex;align-items:center;justify-content:center}
.aq-go:hover{background:var(--blue-hover)}
.aq-go[disabled]{opacity:.6;cursor:progress}

.aq-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.aq-chip{font-size:16px;font-weight:600;color:var(--text);background:var(--bg);border:1.5px solid var(--text);border-radius:var(--radius-pill);padding:10px 20px;min-height:44px;cursor:pointer;transition:background .15s,border-color .15s}
.aq-chip:hover{background:var(--state-hover)}
.aq-demo-open{display:inline-flex;align-items:center;gap:10px;font-size:16px;font-weight:600;color:var(--blue);background:none;border:0;cursor:pointer;padding:12px 8px;min-height:44px}
.aq-demo-open:hover{color:var(--blue-hover)}

.aq-checking{margin:0;font-family:var(--font-display);font-weight:800;font-size:clamp(28px,7.6vw,34px);line-height:1.1;letter-spacing:-.03em}

/* Mr Thoob's reply on the ask screen: a short answer, the guard's words, or the crisis contacts */
.aq-reply{width:100%;max-width:520px;text-align:left;background:var(--bg-card);border-radius:var(--radius-card);padding:var(--space-5);display:flex;flex-direction:column;gap:10px;animation:aq-rise .25s cubic-bezier(.2,.8,.2,1) both}
.aq-reply p{margin:0;font-size:16px;line-height:1.5}
.aq-reply ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.aq-reply li{background:var(--bg);border:1.5px solid var(--border);border-radius:var(--radius-md);padding:12px 14px;font-size:15px;line-height:1.45}
.aq-reply li b{display:block;font-size:16px}
.aq-reply small{font-size:14px;color:var(--text-muted)}
.aq-link{display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--blue)}

/* 2. Careers that fit */
/* the step on the left, the research document on the right (under the list when there is no room beside it) */
.aq-flow{width:100%;max-width:1080px;text-align:left;display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--space-7);padding-top:8px;animation:aq-rise .25s cubic-bezier(.2,.8,.2,1) both}
.aq-flow-main{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:var(--space-5)}
.aq-guide{display:flex;align-items:center;gap:12px}
.aq-guide .aq-orb{width:64px;height:64px}
.aq-guide .aq-orb::after{display:none}
.aq-guide .aq-bubble{max-width:290px}
.aq-title{margin:0;font-family:var(--font-display);font-weight:800;font-size:clamp(30px,7.6vw,44px);line-height:1.08;letter-spacing:-.035em}
.aq-said{display:flex;flex-direction:column;gap:8px;background:var(--bg-card);border-radius:var(--radius-card);padding:var(--space-5)}
.aq-said p{margin:0;font-size:16px;line-height:1.5}
.aq-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 16px;font-size:15px}
.aq-sort{font-size:15px;color:var(--text-muted);background:none;border:0;cursor:pointer;padding:12px 0;min-height:44px;text-align:left}
.aq-sort b{color:var(--blue);font-weight:600}
.aq-bar a{padding:12px 0;min-height:44px;display:inline-flex;align-items:center}
.aq-rows{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:var(--space-3)}
/* the step trail: the current step is bold on a highlighter underline */
.aq-trail{display:flex;align-items:center;flex-wrap:wrap;gap:0 6px;font-size:15px;margin:-6px 0}
.aq-trail span{color:var(--text-dim)}
.aq-trail button{font-size:15px;font-weight:500;background:none;border:0;padding:12px 2px;min-height:44px;color:var(--text-muted);cursor:pointer}
.aq-trail button[aria-current="step"]{color:var(--text);font-weight:700;box-shadow:inset 0 -3px 0 var(--highlight)}
.aq-trail button[disabled]{cursor:default}
/* a career: a row that opens its card (name, a bar filled to the score in the band's color, the score out of 99,
   the band's name) and, beside it, a square + that adds it to the research */
.aq-pick{display:flex;align-items:stretch;gap:var(--space-2)}
.aq-row{flex:1;min-width:0;display:flex;align-items:center;gap:16px;min-height:44px;padding:16px var(--space-5);font:inherit;text-align:left;cursor:pointer;background:var(--bg);border:1.5px solid var(--border);border-radius:var(--radius-card);color:var(--text);transition:background .15s,border-color .15s}
/* hover is grey and picked is soft yellow with an ink border and a tick: the two never look alike */
.aq-row:hover{background:var(--state-hover);border-color:var(--line2)}
.aq-pick[data-picked] .aq-row,.aq-pick[data-picked] .aq-row:hover{background:var(--state-selected);border-color:var(--text)}
.aq-row-main{flex:1;min-width:0;display:grid;gap:3px}
.aq-row-name{font-size:19px;font-weight:600;line-height:1.25;letter-spacing:-.01em}
.aq-row-why{font-size:15px;line-height:1.4;color:var(--text-muted)}
/* words before numbers: the band and a five-step meter, then the score */
.aq-row-side{flex:none;display:flex;align-items:center;gap:var(--space-3)}
.aq-row-level{display:grid;gap:6px;justify-items:end;text-align:right;color:var(--band,var(--text))}
.aq-row-score{min-width:38px;text-align:right;font-family:var(--font-display);font-weight:800;font-size:30px;line-height:1;letter-spacing:-.03em}
.aq-meter{display:inline-flex;gap:3px}
.aq-meter i{width:14px;height:6px;border-radius:3px;background:var(--line2)}
.aq-meter i[data-on]{background:currentColor}
.aq-band{font-size:15px;font-weight:600;line-height:1.2;white-space:nowrap;color:var(--band,var(--text))}
.aq-note{margin:0;font-size:15px;line-height:1.45;color:var(--text-muted)}
/* "Close by and safer": a second list under the first, its title on the highlighter */
.aq-safer{display:grid;gap:var(--space-3);margin-top:var(--space-2)}
.aq-safer-title{margin:0;font-family:var(--font-display);font-weight:800;font-size:19px;line-height:1.3;letter-spacing:-.02em}
.aq-marker{background:linear-gradient(101deg,transparent 0,var(--highlight) 3%,var(--highlight) 96%,transparent 100%);padding:.05em .4em;margin:0 -.15em;border-radius:.45em .15em .5em .2em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
@media (max-width:480px){
  /* the tokens' phone sizes: step and list titles (display-lg-phone), the heading in the family's own words stays within two lines */
  .aq-title{font-size:28px;line-height:1.12;letter-spacing:-.03em}
  .aq-row{flex-direction:column;align-items:stretch;gap:10px;padding:14px var(--space-4)}
  .aq-row-side{justify-content:space-between}
  .aq-row-level{justify-items:start;text-align:left}
}
.aq-asked{display:inline-block;font-size:14px;font-weight:600;color:var(--on-blue);background:var(--text);border-radius:var(--radius-pill);padding:3px 10px;margin-left:8px;vertical-align:2px}
/* a 44px circle, centered beside its row; a tick on ink when picked */
.aq-add{flex:none;align-self:center;width:var(--target-min);height:var(--target-min);padding:0;border-radius:var(--radius-full);cursor:pointer;border:1.5px solid var(--text);background:var(--bg);color:var(--text);display:grid;place-items:center;transition:background .15s}
.aq-add:hover{background:var(--state-hover)}
.aq-add[aria-pressed="true"]:hover{background:var(--text)}
.aq-add:disabled,.aq-card-add:disabled{opacity:.35;cursor:default}
.aq-add:disabled:hover{background:var(--bg)}
.aq-add[aria-pressed="true"]{background:var(--text);color:var(--on-blue)}
.aq-ico{display:flex}
.aq-tally{margin:0;font-size:14px;color:var(--text-muted)}
/* a subject: its name and one line saying which careers it leads toward (it opens nothing, so it is not a button) */
.aq-row-text{flex-direction:column;align-items:stretch;gap:4px;cursor:default}
.aq-row-text:hover{background:var(--bg);border-color:var(--border)}
.aq-pick[data-picked] .aq-row-text:hover{background:var(--state-selected);border-color:var(--text)}
.aq-row-line{font-size:15px;line-height:1.45;color:var(--text-muted)}
.aq-sub{margin:0;font-size:16px;line-height:1.5;color:var(--text-muted)}
.aq-onward{display:flex}

/* where to study: four sliders, the map with a bubble for each state, the key, and the state's colleges */
/* the sliders behind one "Filters" button: closed on a phone, where the map comes first; open with no button on a
   wider screen */
.aq-filters{width:100%}
.aq-filters summary{display:flex;align-items:center;gap:12px;min-height:var(--target-min);padding:8px 16px;border:1.5px solid var(--text);border-radius:var(--radius-pill);cursor:pointer;list-style:none;font-size:15px}
.aq-filters summary::-webkit-details-marker{display:none}
.aq-filters summary:hover{background:var(--state-hover)}
.aq-filters-b{font-weight:600}
.aq-filters-now{color:var(--text-muted);min-width:0}
.aq-filters[open] summary{margin-bottom:var(--space-3)}
@media (min-width:601px){.aq-filters summary{display:none}}
.aq-sliders{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px var(--space-7)}
.aq-slider{display:flex;flex-direction:column;gap:4px;font-size:14px;font-weight:600}
.aq-slider-ends{display:flex;justify-content:space-between;gap:8px}
.aq-slider input{width:100%;height:44px;margin:0;accent-color:var(--text);cursor:pointer}
.aq-slider input:disabled{cursor:not-allowed;opacity:.5}
.aq-slider-now{font-weight:500;color:var(--text-muted)}
.aq-map{position:relative;width:100%}
.aq-map img{display:block;width:100%;height:auto}
.aq-bubbles{position:absolute;inset:0}
/* a state: a round button at its center, filled with its cost step; the home state has an ink ring, the open one
   an ink outline and a yellow ring */
.aq-bub{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px;padding:0;border-radius:50%;cursor:pointer;font-family:inherit;font-size:10.5px;font-weight:700;line-height:1;color:var(--text);background:var(--bg);border:2px solid var(--bg);box-shadow:var(--shadow-pin);z-index:1;transition:transform .15s}
.aq-bub:hover{transform:translate(-50%,-50%) scale(1.18);z-index:2}
.aq-bub[data-home]{box-shadow:0 0 0 2px var(--text)}
.aq-bub[aria-pressed="true"]{border-color:var(--text);box-shadow:0 0 0 3px var(--highlight);z-index:3}
[data-cost="cost-1"]{background:var(--cost-1)}
[data-cost="cost-2"]{background:var(--cost-2)}
[data-cost="cost-3"]{background:var(--cost-3)}
[data-cost="cost-4"]{background:var(--cost-4)}
.aq-bub[data-cost="cost-4"]{color:var(--on-blue)}
.aq-mapkey{display:flex;flex-direction:column;gap:8px}
.aq-key{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:14px;color:var(--text-muted)}
.aq-key-step{display:inline-flex;align-items:center;gap:5px}
.aq-key-step i{display:inline-block;width:12px;height:12px;border-radius:50%}
.aq-pickers{display:flex;flex-wrap:wrap;gap:10px 20px}
.aq-select{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--text-muted)}
.aq-select select{font-family:inherit;font-size:15px;color:var(--text);height:44px;max-width:100%;padding:0 10px;border:1.5px solid var(--line2);border-radius:var(--radius-sm);background:var(--bg)}
.aq-select select:focus-visible{border-color:var(--text)}
.aq-state{display:flex;flex-direction:column;gap:10px}
.aq-state:empty{display:none}
.aq-state-title{margin:6px 0 0;font-family:var(--font-display);font-weight:800;font-size:26px;line-height:1.1;letter-spacing:-.03em}
.aq-state .aq-again{align-self:flex-start}
.aq-row-cost{font-size:15px;line-height:1.45;color:var(--text)}
@media (max-width:600px){
  .aq-bub{width:21px;height:21px;font-size:8.5px;border-width:1.5px}
}
.aq-next-step{border:0;cursor:pointer;font-weight:600;font-size:17px;padding:16px 26px;border-radius:var(--radius-pill);min-height:44px;color:var(--on-blue);background:var(--blue)}
.aq-next-step:hover{background:var(--blue-hover)}
.aq-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* the career card: what the job is, three tasks, the score on the five-step scale, four facts, and the button */
dialog.aq-card{width:min(600px,calc(100vw - 32px));text-align:left}
dialog.aq-card[open]{display:flex;flex-direction:column;gap:16px;animation:aq-rise .25s cubic-bezier(.2,.8,.2,1) both}
.aq-card .aq-dialog-head{align-items:flex-start;margin:0}
.aq-card .aq-dialog-head h2{font-size:clamp(26px,6.6vw,34px);line-height:1.08;letter-spacing:-.03em}
.aq-card-answer{margin:0;font-size:19px;line-height:1.45;font-weight:500}
.aq-card-human{margin:0;font-size:16px;line-height:1.6}
.aq-card-human .aq-marker{font-weight:600}
.aq-card-work{display:grid;gap:8px}
.aq-card-about{margin:0;font-size:16px;line-height:1.5}
.aq-card-k{margin:0 0 6px;font-size:14px;font-weight:600;color:var(--text-muted)}
.aq-card-tasks{margin:0;padding-left:20px;font-size:16px;line-height:1.5}
/* the score scale: the band in words, large, the score beside it, the five steps, and what this step means */
.aq-score{display:grid;gap:10px;padding:var(--space-5);border:1.5px solid var(--border);border-radius:var(--radius-card)}
.aq-score-line{margin:0;display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px var(--space-3)}
.aq-score-band{font-family:var(--font-display);font-weight:800;font-size:30px;line-height:1.1;letter-spacing:-.03em;color:var(--band,var(--text))}
.aq-score-of{font-size:17px;color:var(--text-muted)}
.aq-score-n{font-weight:700;color:var(--text);font-variant-numeric:tabular-nums}
.aq-score-means{margin:0;font-size:16px;line-height:1.45}
.aq-steps summary{cursor:pointer;display:inline-flex;align-items:center;min-height:var(--target-min);font-size:15px;font-weight:600;color:var(--blue);text-decoration:underline;text-underline-offset:3px;list-style:none}
.aq-steps summary::-webkit-details-marker{display:none}
.aq-steps summary:hover{color:var(--blue-hover)}
.aq-steps[open] summary{margin-bottom:4px}
.aq-score-links{margin:0}
.aq-scale{position:relative;width:100%;padding-top:22px}
.aq-mark{position:absolute;top:0;left:var(--to);width:16px;height:16px;margin-left:-8px;border-radius:50%;background:var(--highlight);border:2px solid var(--text);animation:aq-slide .6s cubic-bezier(.2,.8,.2,1) both}
@keyframes aq-slide{from{left:10%}to{left:var(--to)}}
.aq-segs{display:flex;gap:var(--space-1)}
.aq-segs span{flex:1;height:12px;border-radius:var(--radius-pill);background:var(--border)}
.aq-segs span[data-on]{background:var(--band)}
.aq-ends{display:flex;justify-content:space-between;margin-top:8px;font-size:14px;color:var(--text-muted)}
.aq-legend{list-style:none;margin:0;padding:0;width:100%;display:flex;flex-direction:column;gap:2px}
.aq-legend li{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:var(--radius-sm);font-size:14px;line-height:1.35}
.aq-legend li[data-on]{background:var(--highlight-soft)}
.aq-legend-t{flex:1;min-width:0}
.aq-legend strong{color:var(--band)}
.aq-dot{flex:none;width:12px;height:12px;border-radius:50%;background:var(--band)}
.aq-this{flex:none;font-size:14px;font-weight:600;color:var(--on-blue);background:var(--text);border-radius:var(--radius-pill);padding:4px 10px}
.aq-score-links a{font-size:15px;min-height:var(--target-min);display:inline-flex;align-items:center}
[data-test="doc-download"][aria-disabled="true"]{opacity:.45;cursor:default}
/* the one quiet offer at the end of the flow */
.aq-offer{margin:var(--space-2) 0 0;font-size:16px;line-height:1.5;color:var(--text-muted)}
.aq-offer-b{font:inherit;font-weight:600;color:var(--blue);background:none;border:0;padding:0;min-height:var(--target-min);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.aq-offer-b:hover{color:var(--blue-hover)}
details.aq-card-work summary{cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-height:var(--target-min);list-style:none;margin:0;font-size:15px;font-weight:600;color:var(--blue);text-decoration:underline;text-underline-offset:3px}
details.aq-card-work summary::-webkit-details-marker{display:none}
.aq-card-safer{border:1.5px solid var(--text);cursor:pointer;font-weight:600;font-size:16px;padding:14px 22px;border-radius:var(--radius-pill);min-height:var(--target-min);color:var(--text);background:var(--bg);text-decoration:none;display:inline-flex;align-items:center}
.aq-card-safer:hover{background:var(--state-hover)}
.aq-facts{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.aq-facts div{display:flex;flex-direction:column;gap:4px;padding:12px 14px;background:var(--bg-card);border-radius:var(--radius-md)}
.aq-facts dt{font-size:14px;font-weight:600;color:var(--text-muted)}
.aq-facts dd{margin:0;font-size:16px;font-weight:600;line-height:1.3}
.aq-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}
.aq-card-add{border:0;cursor:pointer;font-weight:600;font-size:17px;padding:16px 26px;border-radius:var(--radius-pill);min-height:44px;color:var(--on-blue);background:var(--blue)}
.aq-card-add:hover{background:var(--blue-hover)}
.aq-card-add[data-on]{background:var(--text)}
[data-band="Strong"]{--band:var(--band-strong)}
[data-band="Steady"]{--band:var(--band-steady)}
[data-band="Mixed"]{--band:var(--band-mixed)}
[data-band="Changing fast"]{--band:var(--band-fast)}
[data-band="Changing fastest"]{--band:var(--band-fastest)}
.aq-next{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}
.aq-again{font-size:16px;font-weight:600;color:var(--text);background:var(--bg);border:1.5px solid var(--text);border-radius:var(--radius-pill);padding:10px 20px;min-height:44px;cursor:pointer}
.aq-again:hover{background:var(--state-hover)}

/* 3. The research document: a paper that fills as things are picked. The only large shadow in the system. */
@keyframes aq-drop{0%{opacity:0;transform:translateY(-10px) scale(.96);background:var(--highlight)}60%{opacity:1;transform:translateY(0) scale(1);background:var(--highlight)}100%{background:var(--bg-card)}}
.aq-doc{flex:1 1 300px;max-width:360px;position:sticky;top:16px;display:none;flex-direction:column;gap:var(--space-3)}
.aq-paper{background:var(--bg-elevated);border:1.5px solid var(--border);border-radius:var(--radius-card);padding:var(--space-5);box-shadow:var(--shadow-paper);display:flex;flex-direction:column;gap:14px;text-align:left}
.aq-paper-head{display:flex;justify-content:space-between;align-items:center}
.aq-paper-word{font-family:var(--font-display);font-weight:800;font-size:14px;letter-spacing:-.02em}
.aq-paper-word span{color:var(--blue)}
.aq-paper-k{font-size:14px;font-weight:600;color:var(--text-muted)}
.aq-paper-title{margin:0;font-family:var(--font-display);font-weight:800;font-size:19px;line-height:1.2;letter-spacing:-.02em}
.aq-paper-prog{display:flex;align-items:center;gap:10px}
.aq-paper-track{flex:1;display:block;height:6px;border-radius:var(--radius-pill);background:var(--line);overflow:hidden}
.aq-paper-fill{display:block;height:100%;border-radius:var(--radius-pill);background:var(--blue);transition:width .6s cubic-bezier(.2,.8,.2,1)}
.aq-paper-n{font-size:14px;color:var(--text-muted);white-space:nowrap}
.aq-paper-sec{display:flex;flex-direction:column;gap:6px}
.aq-paper-sech{margin:0;display:flex;justify-content:space-between;font-size:14px;font-weight:600;color:var(--text-muted)}
.aq-paper-items{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.aq-paper-items li{display:flex;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:10px;background:var(--bg-card);font-size:14px;line-height:1.3;font-weight:600}
.aq-paper-items li[data-new]{animation:aq-drop .6s cubic-bezier(.2,.8,.2,1) both}
.aq-paper-meta{flex:none;color:var(--text-muted);font-weight:500}
.aq-doc-get,.aq-docbar-get{border:0;cursor:pointer;font-weight:600;color:var(--on-blue);background:var(--text);border-radius:var(--radius-pill)}
.aq-doc-get{font-size:16px;padding:15px 22px;min-height:44px}
/* on a phone: a bar fixed to the bottom, and the same paper as a sheet */
.aq-docbar{position:fixed;left:0;right:0;bottom:0;z-index:5;display:flex;align-items:center;gap:10px;background:var(--bg);border-top:1.5px solid var(--border);padding:10px 14px calc(10px + env(safe-area-inset-bottom))}
.aq-docbar-open{flex:1;min-width:0;text-align:left;background:var(--bg-card);border:0;border-radius:14px;padding:8px 12px;min-height:48px;cursor:pointer;display:flex;flex-direction:column;gap:2px;color:var(--text)}
.aq-docbar-t{font-size:14px;font-weight:600}
.aq-docbar-t span{color:var(--blue)}
.aq-docbar-n{font-size:14px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.aq-docbar-get{flex:none;font-size:15px;padding:0 18px;min-height:48px}
dialog.aq-sheet{width:min(420px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto auto 16px;padding:0;border:0;background:transparent;overflow-y:auto}
dialog.aq-sheet[open]{display:flex;flex-direction:column;gap:var(--space-3);animation:aq-rise .25s cubic-bezier(.2,.8,.2,1) both}
dialog.aq-sheet::backdrop{background:rgba(11,16,32,.55)}
.aq-sheet-actions{display:flex;gap:10px}
.aq-sheet-keep,.aq-sheet-get{flex:1;border:0;cursor:pointer;font-weight:600;font-size:16px;border-radius:var(--radius-pill);min-height:48px}
.aq-sheet-keep{background:var(--bg);color:var(--text)}
.aq-sheet-get{background:var(--blue);color:var(--on-blue)}
/* the paper sits beside the list only when there is room for both; below that width the bar and sheet are used */
@media (max-width:899px){
  /* room for the bar under the last row */
  .aq[data-step="careers"],.aq[data-step="study"],.aq[data-step="colleges"]{padding-bottom:96px}
  /* the cookie choice (consent.js) sits above the bar, never over it, so both can be used */
  body:has(.aq-docbar:not([hidden])) .ccb{bottom:88px}
  /* and while it is showing, the page can scroll far enough to bring its last button out from under both */
  body:has(.aq-docbar:not([hidden])):has(.ccb:not([style*="none"])) .aq{padding-bottom:300px}
}
@media (min-width:900px){
  .aq-doc{display:flex}
  .aq-docbar{display:none}
}

/* the download form: a first name and an email, then "Your research is ready" */
dialog.aq-form-dialog{width:min(460px,calc(100vw - 32px));text-align:left}
dialog.aq-form-dialog[open]{display:flex;flex-direction:column;gap:16px;animation:aq-rise .25s cubic-bezier(.2,.8,.2,1) both}
.aq-form-dialog .aq-dialog-head{align-items:flex-start;margin:0}
.aq-form-dialog .aq-dialog-head h2{font-size:30px;line-height:1.08;letter-spacing:-.03em}
.aq-form-body{display:flex;flex-direction:column;gap:14px}
.aq-form-sub{margin:0;font-size:16px;line-height:1.5;color:var(--text-muted)}
.aq-field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.aq-field input{height:52px;padding:0 16px;font-family:inherit;font-size:17px;font-weight:400;color:var(--text);background:var(--bg);border:1.5px solid var(--line2);border-radius:14px}
.aq-field input:focus{outline:none;border-color:var(--text)}
.aq-form-err{margin:0;min-height:18px;font-size:14px;font-weight:600;color:var(--band-fastest)}
.aq-form-note{margin:0;font-size:14px;line-height:1.5;color:var(--text-muted)}
.aq-form-note a{color:var(--text-muted)}
.aq-form-dialog .aq-card-add{align-self:flex-start}

.aq-foot{padding:12px var(--space-4) 28px;text-align:center;font-size:14px;line-height:1.5;color:var(--text-muted)}
.aq-foot p{margin:0 0 6px}
.aq-foot a{display:inline-block;padding:4px 0}

/* the demo, in a dialog (its own styles are /demo/demo.css) */
dialog.aq-dialog{width:min(760px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);overflow-y:auto;border:0;border-radius:var(--radius-lg);padding:var(--space-5);background:var(--bg-elevated);color:var(--text)}
dialog.aq-dialog::backdrop{background:rgba(11,16,32,.55)}
.aq-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}
.aq-dialog-head h2{margin:0;font-family:var(--font-display);font-weight:800;font-size:26px;line-height:1.1;letter-spacing:-.02em}
.aq-close{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:var(--line);color:var(--text);cursor:pointer;display:flex;align-items:center;justify-content:center}
/* in the dialog the demo needs no card of its own */
.aq-dialog .demo{padding:0}
.aq-dialog .demo-head{margin-bottom:10px}

@media (min-width:601px){
  .aq{padding:16px var(--space-6) 56px}
  .aq-home{gap:var(--space-7)}
  .aq-stack{gap:22px}
  .aq-home>.aq-orb{width:150px;height:150px}
  .aq-promise{font-size:19px}
  .aq-tabs{gap:4px 28px;flex-wrap:wrap}
  .aq-tabs button{font-size:17px}
  .aq-box{padding:0 24px;font-size:19px}
  .aq-chip{padding:12px 20px}
  .aq-foot{padding:12px 32px 28px}
  dialog.aq-dialog{padding:var(--space-6)}
}
/* a short laptop screen (1280 by 720): a smaller Mr Thoob, so the answer box stays clear of the cookie bar on a first visit */
@media (min-width:601px) and (max-height:780px){
  .aq-home{gap:var(--space-5)}
  .aq-home>.aq-orb{width:110px;height:110px}
}
@media (prefers-reduced-motion:reduce){
  .aq-orb[data-mood="thinking"]::after,.aq-orb::after,.aq-orb .aq-bubble,.aq-reply,.aq-flow,.aq-fill,.aq-mark,dialog.aq-card[open],dialog.aq-sheet[open],dialog.aq-form-dialog[open],.aq-paper-items li[data-new],.aq-glow,.aq-glow::before,.aq-face .eye,[data-mood="thinking"] .halo,[data-mood="thinking"] .rays,[data-mood="happy"] .mouth{animation:none}
  .aq-chip,.aq-row,.aq-add,.aq-bub,.aq-paper-fill,.aq-face .halo,.aq-face .rays{transition:none}
}
/* dialog and card titles on a phone (the tokens' display-md-phone) */
@media (max-width:480px){
  .aq-dialog-head h2,.aq-card .aq-dialog-head h2,.aq-form-dialog .aq-dialog-head h2{font-size:24px;line-height:1.15;letter-spacing:-.025em}
}
