/* Typeform-style presentation. Loaded after site.css, which owns the tokens and the faces. */

/* An explicit display value on a class beats the [hidden] attribute's UA default, so .tf-done
   panels stayed on screen while their .hidden property read true. Assertions on the property
   passed while the page was visibly wrong. This makes hidden mean hidden, everywhere. */
[hidden]{display:none!important}

.tf-wrap{max-width:760px;margin:0 auto;padding:0 24px}

/* progress */
.tf-head{position:sticky;top:0;z-index:5;background:var(--paper);padding:14px 0 10px}
.tf-bar{height:4px;border-radius:2px;background:var(--band);overflow:hidden}
.tf-bar-fill{display:block;height:100%;width:0;background:var(--blue);
  transition:width .35s cubic-bezier(.22,.61,.36,1)}
.tf-count{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--slate);margin:9px 0 0}

/* one screen */
.tf-form{min-height:min(66vh,560px);display:flex;flex-direction:column;justify-content:center;
  padding:26px 0 10px}
.tf-stage{flex:0 0 auto}
.tf-screen{border:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px;
  animation:tf-in .34s cubic-bezier(.22,.61,.36,1)}
@keyframes tf-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

.tf-q{font-family:'Arvo',Georgia,serif;font-weight:700;
  font-size:clamp(22px,3.4vw,32px);line-height:1.25;color:var(--ink);
  padding:0;margin:0 0 2px;display:block;max-width:26ch;text-wrap:balance}
.tf-q:focus{outline:none}
.tf-num{color:var(--blue);font-size:.62em;vertical-align:2px}
.tf-help{font-size:16px;line-height:1.55;color:var(--slate);margin:0;max-width:52ch}
.tf-opt{font-size:13.5px;color:var(--slate);margin:0}

/* inputs, big and quiet */
.tf-screen input[type=text],.tf-screen input[type=email],.tf-screen input[type=tel],
.tf-screen textarea,.tf-screen select{
  font-family:'Roboto',Arial,sans-serif;font-size:22px;color:var(--ink);background:transparent;
  border:none;border-bottom:2px solid var(--hair);border-radius:0;padding:9px 2px;width:100%;
  max-width:34rem}
.tf-screen textarea{font-size:18px;line-height:1.55;border:2px solid var(--hair);border-radius:6px;
  padding:12px 14px;resize:vertical;min-height:130px}
.tf-screen select{max-width:24rem;border:2px solid var(--hair);border-radius:6px;padding:11px 12px;font-size:18px}
.tf-screen input:focus,.tf-screen textarea:focus,.tf-screen select:focus{
  outline:none;border-color:var(--blue)}
.tf-screen input::placeholder,.tf-screen textarea::placeholder{color:var(--slate);opacity:.6}

/* choices */
.tf-choices{display:flex;flex-direction:column;gap:9px;max-width:34rem}
.tf-choice{display:flex;align-items:center;gap:12px;border:2px solid var(--hair);border-radius:8px;
  padding:13px 15px;cursor:pointer;font-size:17px;background:var(--surface);line-height:1.4}
.tf-choice:hover{border-color:var(--blue)}
.tf-choice.sel{border-color:var(--blue);background:var(--blue-wash)}
.tf-choice input{accent-color:var(--blue);margin:0;flex:none}
.tf-choice kbd{font-family:'Roboto',Arial,sans-serif;font-size:11.5px;font-weight:700;
  border:1px solid var(--hair);border-radius:4px;padding:2px 7px;color:var(--slate);flex:none;
  min-width:22px;text-align:center}
.tf-choice.sel kbd{border-color:var(--blue);color:var(--blue)}
.tf-choice:focus-within{outline:2px solid var(--blue);outline-offset:2px}

/* grouped numeric screens */
.tf-group{display:flex;flex-direction:column;gap:9px;max-width:32rem}
/* FLEX, not grid, and deliberately.
   This was a four-column grid, but a row only renders a prefix when the field has one. Percentage
   fields have a suffix and no prefix, so they produced three children against four columns: the
   input landed in the `auto` column, grew to fill it, and squeezed the label to 65px until
   "Hiring and people" wrapped onto three lines on a phone.
   Same root cause as the tranche list defect: a grid whose column count assumes children that are
   not always present. Flex does not care how many children there are. */
.tf-gline{display:flex;align-items:center;gap:10px;
  border:1px solid var(--hair);border-radius:6px;padding:9px 13px;background:var(--surface);font-size:16px}
.tf-gline > span{flex:1 1 auto;min-width:0}
.tf-gline input{flex:0 0 6rem;width:6rem;font-size:18px!important;text-align:right;
  border:none!important;border-bottom:none!important;padding:4px 2px!important;font-variant-numeric:tabular-nums}
@media(max-width:560px){
  .tf-gline{gap:8px;padding:8px 11px;font-size:15px}
  .tf-gline input{flex:0 0 4rem;width:4rem;font-size:16px!important}
}
.tf-pre,.tf-suf{font-style:normal;color:var(--slate);font-size:15px}
.tf-live{font-size:15px;font-weight:700;color:var(--blue);margin:4px 0 0;min-height:1.4em;line-height:1.45}

/* consents */
.tf-consents{display:flex;flex-direction:column;gap:13px;max-width:44rem}
.tf-agree{display:flex;gap:12px;align-items:flex-start;font-size:16px;line-height:1.5;
  color:var(--ink-soft);cursor:pointer}
.tf-agree input{accent-color:var(--blue);margin-top:4px;flex:none;width:18px;height:18px}

.tf-file{font-size:14.5px;color:var(--blue);margin:10px 0 0;font-weight:700}
.tf-screen input[type=file]{font-size:15px;color:var(--ink-soft)}

/* nav */
.tf-nav{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:26px}
.tf-btn{font-family:'Roboto',Arial,sans-serif;font-size:15px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;padding:13px 30px;border-radius:26px;border:2px solid var(--blue);
  background:var(--blue);color:var(--btn-fg);cursor:pointer}
.tf-btn:hover{background:var(--blue-deep);border-color:var(--blue-deep)}
.tf-btn[disabled]{opacity:.55;cursor:default}
.tf-btn.ghost{background:transparent;color:var(--blue)}
.tf-btn.ghost:hover{background:var(--blue-wash)}
.tf-hint{font-size:13px;color:var(--slate);margin:0}
.tf-hint kbd{font-size:11.5px;border:1px solid var(--hair);border-radius:4px;padding:2px 6px}
.tf-err{background:var(--brick-wash);border:1px solid var(--brick);color:var(--brick);
  border-radius:6px;padding:11px 15px;font-size:15px;margin:18px 0 0;max-width:44rem}
.tf-err[hidden]{display:none}

/* review */
.tf-review{margin:0;display:flex;flex-direction:column;gap:0;max-width:44rem}
.tf-rrow{display:grid;grid-template-columns:1fr;gap:2px;padding:12px 0;border-bottom:1px solid var(--hair)}
@media(min-width:620px){.tf-rrow{grid-template-columns:15rem 1fr}}
.tf-rrow:last-child{border-bottom:none}
.tf-rrow dt{font-size:14.5px;color:var(--slate);line-height:1.45}
.tf-rrow dd{margin:0;display:flex;gap:12px;align-items:baseline;justify-content:space-between;
  font-size:16px;color:var(--ink);line-height:1.45}
.tf-edit{background:none;border:none;color:var(--blue);font-family:'Roboto',Arial,sans-serif;
  font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;cursor:pointer;
  padding:2px 4px;flex:none}
.tf-edit:hover{text-decoration:underline}

/* saved-on-this-device notice */
.tf-saved{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;font-size:13.5px;
  color:var(--slate);border-top:1px solid var(--hair);margin-top:30px;padding-top:16px}
.tf-clear{background:none;border:1px solid var(--hair);border-radius:4px;color:var(--slate);
  font-family:'Roboto',Arial,sans-serif;font-size:12px;font-weight:700;text-transform:uppercase;
  letter-spacing:.06em;padding:6px 12px;cursor:pointer}
.tf-clear:hover{color:var(--brick);border-color:var(--brick)}

.tf-done{display:flex;flex-direction:column;gap:14px;padding:40px 0 20px}
.tf-done h2{font-family:'Arvo',Georgia,serif;font-weight:700;font-size:clamp(24px,3.6vw,34px);
  line-height:1.2;margin:0}

@media (prefers-reduced-motion:reduce){
  .tf-screen{animation:none}
  .tf-bar-fill{transition:none}
}

/* the "we found a saved draft" line on the intro. A class, not element.style, so the page
   never depends on anything style-src blocks. */
.tf-resume{color:var(--blue);font-weight:700;margin-top:6px}
