/* The AI job search worksheet, cut down to be shown rather than used: its
   step bar on top, and under it only the top of a step, faded out before it
   gets long. Shared by one-step.html and speed-through.html. The worksheet's
   own look comes from /style.css; what is here is what the worksheet page
   adds on top of it (workshops/ai-job-search/index.html), plus the cut-off.
   Type is the worksheet's at .85, the size the article used to show it at. */
html { font-size: 14.45px; overflow: hidden; }
html, body { background: transparent; }
:root { --paper: #fff; }
main.ws { display: block; max-width: none; margin: 0; padding: 0; gap: 0; }
.ws .body { margin: 0; }

/* the bar: the worksheet's pill */
.ws-head { margin: 0 0 1.6rem; padding: 0; background: none; }
.ws-nav {
  display: flex; align-items: stretch; height: 2.9rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  padding: 0.2rem; gap: 0.2rem;
}
.ws-head .step {
  position: relative; flex: none; width: 3.6rem; display: grid; place-items: center;
  font: inherit; font-size: 1.1rem; line-height: 1; padding: 0;
  background: none; border: 0; border-radius: 999px; color: var(--ink);
  transition: background-color 0.18s ease, opacity 0.2s ease;
}
.ws-head .step .g { display: block; transition: transform 0.16s var(--ease-out); }
.ws-head .step.off { opacity: 0.2; }
/* pressed: the worksheet's own press - the tint deepens and the arrow leans */
.ws-head .step.press { background: rgba(26, 26, 26, 0.07); }
.ws-head .next.press .g { transform: translateX(3px); }
.ws-head .prev.press .g { transform: translateX(-3px); }
.ws-count {
  position: relative; flex: 1; display: flex; gap: 0.3rem; justify-content: center; align-items: center;
  font-size: 0.98rem; font-weight: 600; letter-spacing: 0.01em; color: var(--faint);
}
.ws-count .n { color: var(--ink); }
.ws-count .of:empty { display: none; }

/* the step, as the worksheet sets it */
.ws .card { margin: 0; padding: 0; border: 0; }
.ws .card > h3 { display: block; font-size: 1.5rem; }
main.ws .prose .card:not(.you):not(.end):not(.activity) > h3::before { content: counter(step) ".\00a0"; margin-right: 0; }
.ws .card > h3 + ol.how { margin-top: 1rem; }
.ws .card ol.how li { margin-bottom: 1.25rem; }
.ws .card ol.how .action { display: block; font-weight: 600; }
.ws .card ol.how ul.detail { margin: 0.45rem 0 0 1.05rem; }
.ws .card ol.how ul.detail li { margin-bottom: 0.35rem; padding-left: 0.1rem; font-size: 0.98rem; line-height: 1.55; }
.ws .card ol.how ul.detail li:last-child { margin-bottom: 0; }
.ws .card:not(.end) > .prompt { margin-left: 1.7rem; }
.ws .prompt .rich { padding-right: 2rem; }
.ws .prompt .rich h2 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.ws .prompt button.copy { pointer-events: none; }

/* the cut: only the top of a step, the rest thinning out to nothing */
.cut {
  position: relative; overflow: hidden; height: var(--cut, 13rem);
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
          mask-image: linear-gradient(#000 45%, transparent);
}
.ws .cut > .card { position: absolute; inset: 0 0 auto; margin: 0; padding: 0; border: 0; }
/* turning, as the worksheet turns: the old step is gone at once and the new
   one comes in from the side, so the two are never on screen together */
.cut > .card.in { animation: ws-in 0.28s var(--ease-out) both; }
.cut > .card.in.rev { animation-name: ws-in-back; }
@keyframes ws-in { from { opacity: 0; transform: translateX(14px); } }
@keyframes ws-in-back { from { opacity: 0; transform: translateX(-14px); } }

/* the last screen, as the article showed it: the things to try, closed */
.ws .card.end h4.try { margin: 0 0 0.9rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); }
.ws .uc { border: 1px solid var(--line); border-radius: 0.9rem; margin: 0 0 0.6rem; }
.ws .uc .row { display: flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1rem; font-size: 1.05rem; line-height: 1.4; }
.ws .uc .t { flex: 1; min-width: 0; }
.ws .uc .plan { flex: none; padding: 0.18rem 0.5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--faint); font-size: 0.68rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.ws .uc .row::after {
  content: ""; flex: none; width: 0.42rem; height: 0.42rem; margin-right: 0.3rem;
  border-right: 1.6px solid var(--faint); border-bottom: 1.6px solid var(--faint);
  transform: rotate(45deg) translateY(-0.15rem);
}

@media (prefers-reduced-motion: reduce) {
  .ws-head .step, .ws-head .step .g { transition: none; }
  .cut > .card.in { animation: none; }
}
