/* ha-take.css : the one start block (.ht) and the one sticky Take bar (.ht-bar) on every /test/* page.
   Markup: take-block.js. When the bar shows: ha-take.js. Linked by the block itself, so it loads on all three renderers
   (cp- report pages, the qk- quiz kit, the au- aura page) and looks the same on each: the app's own brand (night sky,
   coral primary button, Inter). Every value is an --ht-* token of its own; nothing here reads a host page's variables,
   and every rule is written against .ht-* so a host stylesheet does not change it. */
:root{
  --ht-bg:#0a0912; --ht-ink:#F4ECD8; --ht-ink-2:#d8d1e6; --ht-mut:#9a93b0;
  --ht-acc:#D97757; --ht-acc-ink:#EDA588; --ht-on-acc:#1A0F0A;
  --ht-line:rgba(255,255,255,.15);
  --ht-sans:'Inter',system-ui,-apple-system,sans-serif;
  --ht-serif:'Fraunces',Georgia,serif;
  --ht-w:360px;          /* the block and its button never grow past this */
  --ht-h:54px;           /* hero button height (tap target 44px or more everywhere) */
}

/* ---------- the block: button, then what a tap costs ---------- */
.ht{box-sizing:border-box;display:grid;gap:12px;width:100%;max-width:var(--ht-w);margin:0;padding:0;text-align:left;font-family:var(--ht-sans)}
.ht *,.ht-bar,.ht-bar *,.ht-btn,.ht-btn *{box-sizing:border-box}

a.ht-btn,button.ht-btn{appearance:none;-webkit-appearance:none;display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;max-width:var(--ht-w);min-height:var(--ht-h);margin:0;padding:8px 18px;border:0;border-radius:14px;
  background:var(--ht-acc);color:var(--ht-on-acc);font:600 16px/1.2 var(--ht-sans);letter-spacing:0;text-align:center;text-decoration:none;
  cursor:pointer;-webkit-tap-highlight-color:transparent;
  box-shadow:0 1px 2px rgba(0,0,0,.45),0 10px 28px -8px rgba(217,119,87,.55);
  transition:filter .16s ease,transform .12s ease,box-shadow .16s ease}
a.ht-btn--long,button.ht-btn--long{font-size:15px;padding-inline:14px}
.ht-btn .ht-btn-t{min-width:0;text-wrap:balance}
.ht-btn svg{flex:none;transition:transform .18s ease}
a.ht-btn:hover,button.ht-btn:hover{filter:brightness(1.06)}
.ht-btn:hover svg{transform:translateX(3px)}
a.ht-btn:active,button.ht-btn:active{transform:scale(.985)}
a.ht-btn:focus-visible,button.ht-btn:focus-visible{outline:2px solid var(--ht-acc-ink);outline-offset:3px}
button.ht-btn[disabled]{opacity:.6;cursor:progress;box-shadow:none}
/* a tap that is loading the test (pubrep.js sets aria-busy): the arrow gives way to a spinner */
button.ht-btn[aria-busy=true] svg{display:none}
button.ht-btn[aria-busy=true]::after{content:"";flex:none;width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:ht-spin .7s linear infinite}
@keyframes ht-spin{to{transform:rotate(360deg)}}

ul.ht-ticks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 14px;margin:0;padding:0;list-style:none;
  font:500 14px/1.3 var(--ht-sans);color:var(--ht-ink-2);text-align:left}
ul.ht-ticks li{display:flex;align-items:flex-start;gap:6px;min-width:0;margin:0;padding:0}
ul.ht-ticks svg{flex:none;margin-top:2px;color:var(--ht-acc-ink)}

/* ---------- the sticky bar: the same button, once the block has scrolled away ---------- */
.ht-bar{position:fixed;left:0;right:0;bottom:0;z-index:40;   /* under a page's sheet (.cp-ov is 50), over the page */
  padding:10px max(20px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px));   /* the pages' own 20px gutter, so the bar's button lines up with the hero's */
  background:rgba(10,9,18,.9);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);
  border-top:1px solid var(--ht-line);box-shadow:0 -12px 32px rgba(0,0,0,.45);
  font-family:var(--ht-sans);color:var(--ht-ink);
  transform:translateY(105%);visibility:hidden;
  transition:transform .24s cubic-bezier(.2,.7,.2,1),visibility 0s linear .24s}
.ht-bar[data-on]{transform:none;visibility:visible;transition:transform .24s cubic-bezier(.2,.7,.2,1),visibility 0s}
/* a sheet is open over the page (pubrep.js marks the page inert): the bar steps aside */
.cp-page[inert] ~ .ht-bar{display:none}
.ht-bar-in{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;max-width:680px;margin:0 auto}
.ht-bar .ht-btn{--ht-h:48px;box-shadow:0 1px 2px rgba(0,0,0,.45)}
.ht-bar-t{display:none;min-width:0;margin:0;font:500 13.5px/1.35 var(--ht-sans);color:var(--ht-mut)}
.ht-bar-t b{display:block;font:600 17px/1.2 var(--ht-serif);letter-spacing:-.005em;color:var(--ht-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ht-bar-t span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width:600px){
  .ht-bar{padding-top:12px;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .ht-bar-in{justify-content:space-between}
  .ht-bar-t{display:block;flex:1 1 auto}
  .ht-bar .ht-btn{flex:0 0 auto;width:auto;min-width:240px;padding-inline:22px}
}
@media (min-width:1000px){ .ht-bar-in{max-width:1080px} }

@media (prefers-reduced-motion:reduce){
  .ht-bar,.ht-bar[data-on]{transition:none !important}
  .ht-btn,.ht-btn svg{transition:none !important}
  .ht-btn:hover svg{transform:none}
  button.ht-btn[aria-busy=true]::after{animation-duration:1.6s !important;animation-iteration-count:infinite !important}
}
@media (forced-colors:active){
  a.ht-btn,button.ht-btn{border:1px solid ButtonText}
  .ht-bar{border-top:1px solid CanvasText}
}
@media print{ .ht-bar{display:none} }
