/* assets/tools/tool-focus.css — the Pages Per Day Calculator's progressive layout, shared.
   Until the visitor starts filling in the form, the calculator is one centred card and the result
   column is not shown; the page script adds .is-open on the first input, and the card glides left
   while the result panel opens beside it. On phones the panel simply appears below once open.
   Opt in with class="reading-workspace tool-focus" (and tool-focus-hero on the hero). Loads after
   reading-plan.css. Layout and motion only: no colours beyond the shared shell. */
.tool-focus{--tf-form:420px}
.tool-focus .reading-form{border-radius:22px;box-shadow:0 30px 80px rgba(0,0,0,.55)}
.tool-focus:not(.is-open) .reading-output{visibility:hidden;opacity:0}
.tool-focus.is-open .reading-output{animation:tf-open .9s .3s cubic-bezier(.2,.7,.2,1) backwards}
@keyframes tf-open{from{opacity:0;transform:translateY(24px);clip-path:inset(0 0 100% 0 round 18px)}to{opacity:1;transform:none;clip-path:inset(0 round 18px)}}
@keyframes tf-up{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(min-width:861px) and (max-width:1050px){.tool-focus{--tf-form:380px}}
@media(min-width:861px){
  .tool-focus{grid-template-columns:0fr var(--tf-form) 1fr;column-gap:0;transition:grid-template-columns .8s cubic-bezier(.22,.8,.24,1)}
  .tool-focus:not(.is-open){grid-template-columns:1fr var(--tf-form) 1fr}
  .tool-focus .reading-form{grid-column:2;grid-row:1}
  .tool-focus .reading-output{grid-column:3;grid-row:1;padding-left:30px}
}
@media(max-width:860px){.tool-focus:not(.is-open) .reading-output{display:none}}
.tool-focus.is-open .reading-empty>*{animation:tf-up .7s cubic-bezier(.2,.7,.2,1) backwards}
.tool-focus.is-open .reading-empty>:nth-child(1){animation-delay:.5s}
.tool-focus.is-open .reading-empty>:nth-child(2){animation-delay:.62s}
.tool-focus.is-open .reading-empty>:nth-child(3){animation-delay:.74s}
.tool-focus.is-open .reading-empty>:nth-child(4){animation-delay:.9s}
.tool-focus [id$="-result"]:not([hidden]) .reading-result-card{animation:tf-up .6s cubic-bezier(.2,.7,.2,1) backwards}
/* The hero sits centred over the centred card, as on the Pages Per Day Calculator. */
.tool-focus-hero{text-align:center}
.tool-focus-hero .pht-crumbs{justify-content:center}
.tool-focus-hero .pht-lede{margin-left:auto;margin-right:auto;max-width:640px}
:lang(en) .tool-focus-hero h1,:lang(es) .tool-focus-hero h1,:lang(fr) .tool-focus-hero h1,:lang(pt) .tool-focus-hero h1,:lang(vi) .tool-focus-hero h1{text-wrap:balance}
:lang(ja) .tool-focus-hero h1{word-break:auto-phrase}
@media(prefers-reduced-motion:reduce){
  .tool-focus,.tool-focus .reading-output,.tool-focus .reading-empty>*,.tool-focus .reading-result-card{transition:none!important;animation:none!important}
}
